Skip to content

ayushmgarg/learning-github

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

learning-github

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

About

This is my first Git repository. Come learn with me about all the commands.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages