Difference between revisions of "git"
Jason Parmer (talk | contribs) |
|||
| Line 7: | Line 7: | ||
<pre>git clone nimbus.aboutus.com:/opt/git/aboutus aboutus-1.10.0</pre> | <pre>git clone nimbus.aboutus.com:/opt/git/aboutus aboutus-1.10.0</pre> | ||
| + | you'll want to edit .git/info/exclude and add at least LocalSettings.php, don't know how we can get these transmitted automatically | ||
==Status== | ==Status== | ||
| Line 16: | Line 17: | ||
==Update== | ==Update== | ||
<pre>git pull</pre> | <pre>git pull</pre> | ||
| + | |||
| + | ==Commit== | ||
| + | <pre> git commit -a -m "commit message"</pre> | ||
| + | make *sure* you check status first, this will add all new files and commit them to your local repository. | ||
| + | |||
| + | If you don't want to use -a (probably a good idea) then run git add for each file you want to update before you run git commit. | ||
| + | |||
| + | Yes, that means that you have to git add a file every time you modify it, even if the file is already being tracked. | ||
Revision as of 19:16, 20 June 2007
Contents
Checkout
git clone <repo> name
Checks out a copy of repo into the named directory
git clone nimbus.aboutus.com:/opt/git/aboutus aboutus-1.10.0
you'll want to edit .git/info/exclude and add at least LocalSettings.php, don't know how we can get these transmitted automatically
Status
git status
Diff
git diff
Update
git pull
Commit
git commit -a -m "commit message"
make *sure* you check status first, this will add all new files and commit them to your local repository.
If you don't want to use -a (probably a good idea) then run git add for each file you want to update before you run git commit.
Yes, that means that you have to git add a file every time you modify it, even if the file is already being tracked.
