Git useful command list

  1. how to go back to the previous commit version, modify and commit in the latest one
    git log
    the command will show you commit version (and to to quit press “Q”).
    ref: stackoverflow
  2. git checkout <version of commit>
    After run this, the  version will be automatically back to the previous version, and then you can update and push it to the latest version
  3. daily usage commandgit push origin <branch name>

    git pull origin <branch name>

    git remote -v

    git remote add

    git add .
    will add all of your files that you had changed

    git commit -m “comments”
    Will commit all of your change, usually we run this after we run “add” command

Pos ini dipublikasikan di computer, documentation, git, versioning. Tandai permalink.

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:


You are commenting using your account. Logout /  Ubah )

Foto Google+

You are commenting using your Google+ account. Logout /  Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout /  Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout /  Ubah )

Connecting to %s