Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 531 Bytes

File metadata and controls

29 lines (19 loc) · 531 Bytes

configure user name

git config --global user.name "user_name" git config --global user.email "user_email"

Check status

git status

git add <file_name>

we use this to add file which we want to push into our repo

git commit -m "message_here"

this is use to add message with commit"

git push

we use this one to push into repo

to checkout we can use below one

git branch -a

to fetch all branch from browser to loca

git fetch

switch to other branch

git checkout <branch_name> To verify use git branch -a