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
services:rcs:start [2014/12/12 13:56] glaubitzservices:rcs:start [2014/12/15 09:09] (current) – moved --shared switch for git init to right place behrmj87
Line 7: Line 7:
 ==== Creating the shared git repository on the server ==== ==== Creating the shared git repository on the server ====
  
-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 --shared=true'' to create an empty 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 --shared=true 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 79: Line 79:
 ===== Short summary of useful git commands ===== ===== Short summary of useful git commands =====
  
 +  * ''git init <repository>'' - create a git repository in the current folder with the name //repository// (add ''--bare'' for server repositories)
   * ''git clone <URL to git repository>'' - clone a local working copy of a remote repository   * ''git clone <URL to git repository>'' - clone a local working copy of a remote repository
 +  * ''git pull'' - check the remote repository for new changes and retrieve them
 +  * ''git add <file>'' - add a new file to the git repository (requires commit)
 +  * ''git status'' - view current status of the repository including files which are untracked and files to be committed
 +  * ''git commit -m <commit message>'' - commit all staged changes
 +  * ''git stash'' - revert all changes made since the last commit were made
 +  * ''git remote'' - list and modify remote repositories
 +  * ''git branch'' - list and modify development branches
 +  * ''git diff commitID1..commitID2'' - view changes between two commits
services/rcs/start.1418392576.txt.gz · Last modified: 2014/12/12 13:56 by glaubitz

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki