Changes between Version 8 and Version 9 of faq/git
- Timestamp:
- Sep 7, 2010, 11:39:35 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
faq/git
v8 v9 1 [[PageOutline]] 1 2 = Does May First/People Link have a shared git installation I can use? = 3 4 == User Explanation == 2 5 3 6 [http://git-scm.com/ git] is a [WikiPedia:Revision_Control_System revision control system]. It is often used as a tool to help developers collaborate on a software or web site project. It helps track changes made to files by multiple people. … … 27 30 * Next add the MFPL git repo as a remote: 28 31 {{{ 29 git remote add origin gitosis@git.mayfirst.org:myproject.git32 git remote add mfpl gitosis@git.mayfirst.org:myname/myproject.git 30 33 }}} 31 34 * And then the moment of truth: 32 35 {{{ 33 git push origin master:refs/heads/master36 git push mfpl master 34 37 }}} 35 * If you don't want to specify origin master:refs/heads/master every time you want to push, you can edit your .git/config file and copy the fetch line in the originstanza, replacing fetch with push. For example:38 * If you don't want to specify mfpl masterr every time you want to push, you can edit your .git/config file and copy the fetch line in the mfpl stanza, replacing fetch with push. For example: 36 39 {{{ 37 [remote " origin"]40 [remote "mfpl"] 38 41 url = gitosis@git.mayfirst.org:myproject.git 39 fetch = +refs/heads/*:refs/remotes/ origin/*40 push = +refs/heads/*:refs/remotes/ origin/*42 fetch = +refs/heads/*:refs/remotes/mfpl/* 43 push = +refs/heads/*:refs/remotes/mfpl/* 41 44 }}} 45 46 == Admin Setup == 47 48