Skip to content

Chhavi-S/Git-Tutorials

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 

Repository files navigation

Intructions to use git

  • Before starting anywork To make sure everything is in sync
    git pull

  • To push your work
    git push
    git push origin <branch>

  • To commit your work

    git add .
    git commit -m "message"
    git push --all
    
  • To push the work to master
    git push
    git push origin <branch>
    git push origin mayank:master

  • To change the branch
    git checkout <branch_name>

  • To set the username of github

    git config --global user.email "email@email.com" 
    git config --global user.name "unname" 
    
  • To set the proxy
    git config --global http.proxy http://proxyuser:proxypwd@proxy.server.com:8080
    To unset the proxy
    git config --global --unset http.proxy

  • To handle the conflicts
    git checkout --thiers .
    git checkout --ours .

  • To add user credentials git config --global credential.https://github.com.username <your_username>

About

Git commands

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published