r9 - 24 Jul 2008 - 18:56:39 - HecPeAreYou are here: TWiki >  General Web > Git
wp - wp (es) - intro (es) - cheat-sheet , http://gitcasts.com

-- HecPeAre - 05 Apr 2008

GitHub - cheat sheet

-- HecPeAre - 05 May 2008

echo '.*.swp' >> .git/info/exclude

-- HecPeAre - 05 May 2008

New branch:

  • git branch -b new_branch_name
Patch:
  • cat patch_file.diff | git am

gitk, test...

Ok:

  • git checkout master
  • git merge branch_name
  • git push origin master
Remove branch from local:
  • git branch -D branch_name
Remove branch from remote repo:
  • git push origin :branch_name (after removing from local)

(thanks to robe5)

-- HecPeAre - 25 Jun 2008

Rename branch:

  • git-branch -m old_branch_name new_branch_name

-- HecPeAre - 25 Jun 2008

http://www.inwebwetrust.net/post/2008/05/31/diferencias-colorizadas-svn-y-git#comentarios

-- HecPeAre - 28 Jun 2008

Show all branches:

  • git branch -a
Change
  • git checkout branch_name

-- HecPeAre - 13 Jul 2008

Include (branch) in the prompt:

git_branch() {

git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1) /'

}

export PS1="\u@\h:\w \$(git_branch)$ "

-- HecPeAre - 14 Jul 2008

git checkout master

git merge edge

-- HecPeAre - 24 Jul 2008

 

Others:

Mercurial - wp

Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r9 < r8 < r7 < r6 < r5 | More topic actions
 
Powered by TWiki

This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback