... | ... | @@ -22,6 +22,16 @@ git checkout my-dev-branch |
|
|
git checkout master somefile
|
|
|
```
|
|
|
|
|
|
## Get hold of a working copy of a new branch from upstream repo
|
|
|
If a new branch, say a development branch is created in nordugrid/arc (upstream repo) and you don't previously have this branch in your fork, do the following to create a local copy of the branch and to push it to your remote fork repo. Here we assume that you have already added the upstream repo remote (https://source.coderefinery.org/nordugrid/arc/wikis/Contributing/Cheat-Sheet#l2)
|
|
|
|
|
|
|
|
|
```
|
|
|
git fetch upstream
|
|
|
git checkout -b <name-of-new-branch> upstream/<name-of-new-branch>
|
|
|
git push -u origin <name-of-new-branch>
|
|
|
```
|
|
|
|
|
|
## Useful links
|
|
|
https://www.git-tower.com/blog/git-for-subversion-users-cheat-sheet/
|
|
|
https://gist.github.com/Chaser324/ce0505fbed06b947d962<br>
|
... | ... | |