Git Commands
Git Commands
$ git init
LOCAL CHANGES
$ git status
$ git diff
$ git add .
$ git commit -a
$ git commit
COMMIT HISTORY
Show all commits, starting with newest
$ git log
Abort a rebase
solve conflicts
$ git mergetool
Use your editor to manually solve conflicts and (after resolving) mark file as resolved
UNDO
Reset your HEAD pointer to a previous commit and discard all changes since then
git add file1 = file1 untrack files ni add cheyali ante cmd (untrack means add
cheyani files ni untrack antaru
git add . = e command tho all untrack files add avthai
git log = Show all commits, starting with newest (commit id chupistundi)
git log --oneline = ani commit cheyasamo ani chupistundi
git show url = file lo vuna content ni chupistundi
Staging area is important part of git
Staging area anadi manom local repository and remote repository ke files ni add
cheyali anukuntanamo avi staging area lo add cheystam
E process motham ni staging area antaru