Basic Git commands for beginners
Basic git commands for basic simple workflow
initialize the git repo into current directory
git init
add the file into staging i.e file that needs go on next commit
git add <file-name> // adds the particular file
git add <filenames> // list separated by spaces
git add . // adds the all the files
check the statuses of files
git status -s
recording file changes into repo
git commit -m "commit the file from staging"
check the history of commits
git log
Written by Abhijeet Sutar
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
khasinski
591.1K
dmichaelavila
500.4K
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#