Open main menu

Changes

Git asynchronous development

693 bytes added, 13:46, 25 June 2013
=== Modification 1 ===
Then we modifylib/software/nmrpipe.py, and add following
<source lang="python">
# Python module imports.
from lib.errors import RelaxError
</source>
Then we make a patch
git diff > nmrpipe1
We add the change to be recorded
git add lib/software/nmrpipe.py
Or see last changes by
git log -p
 
Now create your patch, comparing to the sr branch
git format-patch sr
=== Modification 2 ===
"""
</source>
Then we make a patch
git diff > nmrpipe2
We add the change to be recorded
git add lib/software/nmrpipe.py
Or see last changes by
git log -p -1
 
Now create your patches, comparing to the sr branch
git format-patch sr
This should provide two patch files
=== Getting an overview ===
Using a GUI to Visualize History. If you like to use a more graphical tool to visualize your commit history, you may want to take a look at a Tcl/Tk program called gitk that is distributed with Git. Gitk is basically a visual git log tool, and it accepts nearly all the filtering options that git log does. Type gitk on the command line in your project.
gitk
 
Let's review how we can change older commit messages, [http://stackoverflow.com/questions/8824971/how-to-git-amend-older-commit how-to amend older commit]. We want to change the commit message we made some commits ago
 
To find out, how long we would like to go back, we use the log
git log
We would like change the commit message two commits ago ('''^^''')
git rebase -i HEAD^^
git add -A # To add changes from all tracked and untracked files
git commit -C HEAD # reuse the commit that's there. Omit this option if you want to change that too
git rebase --continue
== See also ==
Trusted, Bureaucrats
1,382

edits