User Tools

Site Tools


services:rcs:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
services:rcs:start [2014/12/12 11:00] glaubitzservices:rcs:start [2014/12/12 13:00] glaubitz
Line 5: Line 5:
 Using //git//, it's relatively simple and easy to set up a shared revision control system for a group using a folder which has read and write permissions for everyone who is a member of this group. At the Physics department, we have the //grouphome// folder which can be used for exactly this purpose. Using //git//, it's relatively simple and easy to set up a shared revision control system for a group using a folder which has read and write permissions for everyone who is a member of this group. At the Physics department, we have the //grouphome// folder which can be used for exactly this purpose.
  
-First of all, open a terminal and open an SSH connection to //login.physik.fu-berlin.de//. Then change into your group's grouphome directory using the //cd// command, e.g. //cd /net/grouphome/ag-test//. Then issue the command //git init --bare myrepo.git// to create git repository with the name //myrepo//:+First of all, open a terminal and open an SSH connection to //login.physik.fu-berlin.de//. Then change into your group's grouphome directory using the //cd// command, e.g. //cd /net/grouphome/ag-test//. Then issue the command //git init --bare myrepo.git// to create an empty git repository with the name //myrepo//:
  
 {{:services:rcs:git-grouphome-step1.png|}} {{:services:rcs:git-grouphome-step1.png|}}
Line 22: Line 22:
  
 {{:services:rcs:git-grouphome-step3.png|}} {{:services:rcs:git-grouphome-step3.png|}}
 +
 +Add the new file to the git repository by entering //git add test.txt//. You can issue //git status// again to verify the new file has now been staged for commit:
  
 {{:services:rcs:git-grouphome-step4.png|}} {{:services:rcs:git-grouphome-step4.png|}}
 +
 +To commit the changes, type //git commit -m "Commit Message"// where "Commit Message" is an arbitrary text used to describe this particular commit. You may also edit the commit message in your editor of choice (set by the environment variable $EDITOR) by just typing //git commit//.
 +
 +**Note**: Unlike //cvs// or //svn//, anything that has been committed is not automatically pushed to the remote repository on the server (in this case, the repository in the grouphome folder). To push the changes to the remote repository, see the following step.
  
 {{:services:rcs:git-grouphome-step5.png|}} {{:services:rcs:git-grouphome-step5.png|}}
services/rcs/start.txt · Last modified: 2014/12/15 09:09 by behrmj87

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki