git commands
git merge --abort
Git Basic commands
// Git Basic commands
git init
- Initializes the current folder as a git repository
git status
- Current status of the folder
git add path/to/file
- To add a particular file
git add .
- add all files staging area -
git commit -m "First commit"
- commit the changes to the git repository
git log --oneline
- see a brief log of commits in line by line
git log
- see a brief log of commits with author and date
git checkout <commit> <file>
- checkout the file from an older commit
git checkout -- <file>
- to discard changes in working directory
git reset <file>
- unstage a staged file, but leave working directory unchanged
git reset
- reset the staging area to the last commit without disturbing the working directory
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us