Skip to content

Latest commit

 

History

History

git

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

README.md

Popular Version Controls:

Git

Subversion

Mercurial

git show

It will show the current commit information.

git log

show log of commits

--oneline -> show only commit messsages

--stat -> show commit and files and number of changed lines of files

git add

This command will add files from working directory to the staging index.

git commit --amend

change the most-recent commit

git reset

git reset --soft HEAD~1

It will add commit to staging index.

git reset --hard HEAD~1

It will add commit to trash.

git branch

To change branch name:

git branch -m <oldname> <newname>

To change current branch name:

git branch -m <newname>