This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| computing:git [2013/12/18 15:34] – [Private copy of a repository and pull requests] clange | computing:git [2017/03/04 15:20] (current) – [CMSSW and github] iwn | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== CMSSW and github ====== | ====== CMSSW and github ====== | ||
| - | |||
| * [[http:// | * [[http:// | ||
| * [[https:// | * [[https:// | ||
| * [[http:// | * [[http:// | ||
| + | * [[https:// | ||
| * [[https:// | * [[https:// | ||
| * [[computing: | * [[computing: | ||
| Line 45: | Line 45: | ||
| echo "Your github username has been set to \" | echo "Your github username has been set to \" | ||
| git clone git@github.com: | git clone git@github.com: | ||
| + | cd ExoDiBosonResonances | ||
| </ | </ | ||
| Line 59: | Line 60: | ||
| git remote -v | git remote -v | ||
| - | 4. Fetch latest changes in branch | + | 4. Update to the edbr_tautau |
| - | < | ||
| - | git pull cms-edbr edbr_tautau | ||
| - | </ | ||
| - | |||
| - | and update HEAD to branch: | ||
| git co edbr_tautau | git co edbr_tautau | ||
| + | |||
| + | Fetch latest changes in branch edbr_tautau from the main repository | ||
| + | |||
| + | git fetch cms-edbr edbr_tautau | ||
| + | |||
| + | and merge | ||
| + | |||
| + | git merge edbr_tautau cms-edbr/ | ||
| + | git merge FETCH_HEAD origin/ | ||
| + | |||
| + | To preview what this would do you can try | ||
| + | |||
| + | git log ..cms-edbr/ | ||
| + | git diff ...cms-edbr/ | ||
| 5. Make local changes, add these files for a commit and commit | 5. Make local changes, add these files for a commit and commit | ||
| Line 80: | Line 90: | ||
| < | < | ||
| git push origin edbr_tautau | git push origin edbr_tautau | ||
| + | git push origin master #generally | ||
| </ | </ | ||
| Line 85: | Line 96: | ||
| https:// | https:// | ||
| and make a pull request to move your changes to the project repository by clicking on "Pull Request", | and make a pull request to move your changes to the project repository by clicking on "Pull Request", | ||
| - | |||