Learn Git

less than 1 minute read

the command git
git_command

NOTE: The command of git initshould be excuted at the root of respo.

how to make the locate file in sync with the remote repo changed (by other).

git pull <remote> <branch>

how the Branch is implement

Branch and Merge tutorial
understand the Git history

Creat new branch

git branch < branch name>

Show how many branches it has.

git branch

Switch to another branch.

git check out <branch name>

Merge two branch

  • fast forword merge
  • git merge < one branch name> < another branch name>

    Show the git history

    git log --oneline --graph --color --all --decrator


    Q&A

    Run into Out of memory,malloc failed(try to allocate 88812448 bytes). There is a answer Eidit the .git/config file

    Tags:

    Updated: