Changes between Version 1 and Version 2 of u/erica/GitRepos


Ignore:
Timestamp:
05/13/15 12:23:58 (10 years ago)
Author:
Erica Kaminski
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • u/erica/GitRepos

    v1 v2  
    3232Now shows you have 2 local checked out versions of the code, master and development, and that you are currently sitting in the development branch (marked by an '*').
    3333
     34From there, if you want to begin making changes to the code, you must ''create'' a new branch off of the development branch, for which you will later merge with the development branch after you have tested your edits.
    3435
    35   drepository named astrobear in your current working directory.
     36{{{
     37git branch -b your_new_branch
     38}}}
    3639
    37 Switching to that repo and running the follow
     40This will take the current version of the development code and create an offshoot of it (i.e. a copy of it) for you to then work with.
    3841
     42As you make changes to this branch, note they will all be local to your working directory until you push those changes into the central repo. This means that if you were to delete your directory, your branch (and all of its changes) would cease to exist (i.e. no copy of it is present in the central repo until you push).
     43
     44When you are ready to push these changes to the repo, you would give the command,
     45
     46{{{
     47git push
     48}}}
     49
     50This pushes (i.e. copies) your current working branch into the central repo. So if you are working on *your_new_branch, then it will push a copy of your_new_branch into the repo.
     51
     52Now, the procedure for pushing changes into the development branch goes as follows. Once your changes are ready to go into the dev branch, you want to switch back to the development branch and update it so that your changes are going to be merged with the ''newest'' version of the dev branch. You do this with,
     53
     54{{{
     55git checkout development
     56git pull
     57}}}