This is my first Git repository. Come learn with me about all the commands.
Author - Ayush Garg
To use on desktop (for windows):
Download git bash:
https://git-scm.com/downloads
Using Git Bash:
Set-up your global configurations for your user:
git config --global user.name "your name"
git config --global user.email "your email"
From terminal:
To clone:
git clone "some link"
To display status of code:
git status
Some Terminologies:
Untracked: new files but git doesnt know about it
modified:changes done
staged: file is ready to be committed
unmodified: no changes
To add files before committing to let git know about all the new files created:
git add . (for more than 1 file)
git add "file-name" (for particular file)
To record change (locally):
git commit -m "some message"
Push command (local to github):
git push origin "branch name"
Followed Tutorial by Apna College:
https://www.youtube.com/watch?v=Ez8F0nW6S-w