Skip to content

proabhishek/Git-Commands

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 

Repository files navigation

Git-Commands

Only on time:

git config --global user.name "FIRST_NAME LAST_NAME"

git config --global user.email "[email protected]"

Genral Push:

git status

git init

git add .

git commit -m"some message"

git remote add origin link_of_repo

git remote => helps you to check if remote os there

git branch => tell urs current branch for now defualt is master

git push origin master

Pull the code:

git clone link

git stash => remove your chnages

git pull

git stash pop => bring back your changes

Git Branch

git branch => shows all branch and highlights current branch

git checkout -b"write new branch name" => this basically helps you to create a new branch and also navigate to that branch

git checkout branch-name => navigate to that branch

git push origin branch-name => push code to existing branch

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published