Viewing the revision history

From Geos-chem
Revision as of 15:40, 19 June 2019 by Bmy (Talk | contribs) (Created page with "__FORCETOC__ '''''Previous | [[|Next]] | Guide to using Git with GEOS-Chem | Getting Started with GEOS-Chem | GEOS-Chem Main Page'''''...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Previous | Next | Guide to using Git with GEOS-Chem | Getting Started with GEOS-Chem | GEOS-Chem Main Page

Using the Git GUI browser

We recommend using the git gui for source code management. Start this in your code directory:

     git gui &

On the left there are 2 windows:

  1. Unstaged Changes: An unstaged change is a modification that Git does not know about yet. If you modified any files since the last commit, then they should be displayed in this window. Also, right above this window you will find the name of the current checked-out branch.
  2. Staged Changes: These are changes that Git will add to the repository the very next time you make a commit.

In general, anytime you need to modify the source code, you should NOT do it on the master branch. You should create a new branch for your modifications. Then you can test your modifications ad nauseum until you are sure that everything is functioning as it should. When your modifications are complete, you can merge your branch into the master branch. You can then delete the branch you created.

The advantage of this approach is that if you ever need to start over from scratch, you can just go back to the master branch and you will get back the state of the code before your modifications were added.

Using the Gitk browser

Further reading

--Bob Yantosca (talk) 15:40, 19 June 2019 (UTC)


Previous | Next | Guide to using Git with GEOS-Chem | Getting Started with GEOS-Chem | GEOS-Chem Main Page