LoginSignup
2
2

More than 5 years have passed since last update.

git

Last updated at Posted at 2015-04-22

What is git ?

git is a distributed revision control system.

Basic setting

terminal
$ git config --global user.name "your name"
$ git config --global user.email "your email address"
$ git config --global http.proxy "your proxy host if needed"
$ git config core.editor "your prefferd editor"

Useful command

terminal
$ git add . --all
# --all option allows to remove cached file which was deleted by rm.

$ git rm --cached <filename>
# Removing from index stage.

$ git reset HEAD <file>...
# Unstaging changes from index stage but not remove it.

$ git rebase -i HEAD~<num or --root>
# Making changes over multiple commits
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2