Skip to content

Harsh-Agarwal16/git-learning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

git-learning

How to setup config

  • Local

    git config user.name <User name>
    git config user.email <User email>
  • Global

    git config --global user.name <User name>
    git config --global user.email <User email>

Working status

git status

How to Clone

git clone https://github.com/himanshunigam-daffodil/git-learning.git

How to view remote list for repository

git remote
git remote --v

How to add file/directory

git add branch.txt
git add branch/

How to view difference

git diff <file-path>

How to commit

git commit -a -m "Commit git branching commands"

How to fetch remote changes

git fetch

How to pull remote changes

  • Pull from remote branch
git pull
  • Pull from remote another branch
git pull <remote-name> <branch-name>

How to push changes

git push <remote-name> <branch-name>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors