... | ... | @@ -42,4 +42,28 @@ which shows you a list of all files and subdirectories in that directory in reve |
|
|
|
|
|
Working with a cloned repository: pull and push
|
|
|
-------------------------------------------------------
|
|
|
|
|
|
The basic actions for working with a clone of an OpenVT repository are pulling and pushing. Before doing any changes on the files in your clone, you should perform a pull, which updates the local copies of the files to the latest status on the OpenVT platform. On a command line (Linux terminal or the Git Bash app on Windows), cd into the clone folder and type
|
|
|
```bash
|
|
|
git pull
|
|
|
```
|
|
|
You will be prompted for your pass phrase and the files will be updated. Now, you can modify, add or remove files (using any command line or GUI tool of your choice). Once you are done, you have to commit your changes. In order to do that, use the command lione again to cd into the clone directory and perform the following steps:
|
|
|
```bash
|
|
|
git add .
|
|
|
```
|
|
|
this adds new files or removes obsolete files in case you have added or deleted files.
|
|
|
```bash
|
|
|
git commit -m 'commit_message'
|
|
|
```
|
|
|
where you replace commit message with a meaningful description of the modifications you did
|
|
|
```bash
|
|
|
git push origin master
|
|
|
```
|
|
|
this will prompt you for your pass phrase and upload your changes to OpenVT. If there is only one branch in your repository, you can skip the "origin master" options. On the other hand, if there are different branches, you can replace "master" with the branch to which you would like to push. Your modifications will now be accessible on OpenVT to anyone who has access to the project under consideration.
|
|
|
|
|
|
Repeat this work flow every time that you would like to do modifications on the contents of your OpenVT repository.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\ No newline at end of file |