Git: Unterschied zwischen den Versionen

Aus Open Source Ecology - Germany
Zur Navigation springen Zur Suche springen
Zeile 25: Zeile 25:
 
===Branches===
 
===Branches===
 
* Rename branch: git branch -m <new_branch_name>
 
* Rename branch: git branch -m <new_branch_name>
 +
 +
==When merge branch was accepted==
 +
* git remote update (get and update all remote references)
 +
* git remote prune origin  (remove all local references to remote branches of origin)
 +
* git branch -av (view all branches)
 +
* git checkout master (change to your local branch)
 +
* git pull
 +
* git branch -d <branch_name> (delete the local branch)
  
 
==Workflow==
 
==Workflow==

Version vom 26. Juli 2013, 11:09 Uhr

http://git-scm.com/

Windows

Here are described the steps to use Git under Windows. Feel free to improve the documentation.

Links

Github

Commands

You changed files and want to commit them

  • git commit -a -m "YOURMESSAGE"
  • git push origin

Branches

  • Rename branch: git branch -m <new_branch_name>

When merge branch was accepted

  • git remote update (get and update all remote references)
  • git remote prune origin (remove all local references to remote branches of origin)
  • git branch -av (view all branches)
  • git checkout master (change to your local branch)
  • git pull
  • git branch -d <branch_name> (delete the local branch)

Workflow

Links