You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.5 KiB
45 lines
1.5 KiB
============================================================ DOCUMENTATION =======================================================
|
|
|
|
GIT tutorial on kernel.org:
|
|
http://www.kernel.org/pub/software/scm/git/docs/gittutorial.html
|
|
|
|
GIT "cheat sheet"
|
|
http://jonas.nitro.dk/git/quick-reference.html
|
|
|
|
GIT for those who are used to centralized SCMs:
|
|
http://media.pragprog.com/titles/tsgit/chap-005-extract.html
|
|
|
|
================================================================ HOWTO ===========================================================
|
|
|
|
Checking out the repository for editing under your username:
|
|
git clone http://your-username@scm.trinitydesktop.org/scm/git/tde
|
|
|
|
Adding files:
|
|
git add *
|
|
|
|
Committing changes to your local copy:
|
|
git commit -a
|
|
|
|
Pushing all committed changes in your local copy to the master server:
|
|
git push origin master
|
|
|
|
================================================================= NOTE ============================================================
|
|
GIT cannot store empty directories due to a design limitation.
|
|
|
|
Therefore, this command should be run prior to any commits to ensure your empty directories stick around:
|
|
|
|
find . -type d -empty -exec touch {}/.gitignore \;
|
|
|
|
================================================================ WORKFLOW ==========================================================
|
|
|
|
|
|
git clone http://your-username@scm.trinitydesktop.org/scm/git/tde
|
|
|
|
<make your changes, test, etc>
|
|
|
|
cd <repository checkout directory>
|
|
find . -type d -empty -exec touch {}/.gitignore \;
|
|
git add *
|
|
git commit -a
|
|
git push origin master
|