Difference between revisions of "Git"

From www.b-kaempgen.de
Jump to: navigation, search
(Created page with "Description::Common git commands. * Basic commands: http://git-scm.com/book/en/Git-Basics-Recording-Changes-to-the-Repository == Common Commands == * used git clone uri * u...")
 
(Common Commands)
 
Line 15: Line 15:
 
* git remote add fork https://github.com/bkaempgen/olap4j-xmlaserver.git
 
* git remote add fork https://github.com/bkaempgen/olap4j-xmlaserver.git
 
* git checkout master - switch to master or branch
 
* git checkout master - switch to master or branch
 +
* git log document.tex - for logs
 
* Roll back
 
* Roll back
 
<pre>
 
<pre>

Latest revision as of 02:38, 29 September 2014

Common git commands.

Common Commands

  • used git clone uri
  • used git status
  • used git add
  • used git status --staged <=
  • git diff --cached <= staged so far see differences: git diff file
  • git commit <= to your local repository
  • git push origin master (push upstream if you have write access) <= origin ist remote repository, master ist der branch
  • git remote show origin <= look at info about upstream source
  • git diff origin master <= show difference between current commit and upstream
  • git remote add fork https://github.com/bkaempgen/olap4j-xmlaserver.git
  • git checkout master - switch to master or branch
  • git log document.tex - for logs
  • Roll back
git fetch origin
git reset --hard origin/master

Google Code

Problems

Difference between repositories

How do i fix merge conflicts in git

Renaming