Skip to content

the-chill-devs/git-refresher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 

Repository files navigation

Chill devs learning and working together to be the best

1. Essential Git commands

By codeschris

  • git init: initialize a repository to be pushed to GitHub
  • git add project-file: stage files to be committed
  • git commit:
    • (-m "commit message"): commit changes with a small message
    • leave blank: commit changes with a detailed message
  • git branch:
    • (-M branch_name): renaming a branch
    • leave blank: checking branches available in the repo
    • (--delete branch_name): delete a branch
  • git remote add origin https://url-of-the-project: connecting your origin (project in Git) to remote (local project)
  • git push:
    • (-u origin branch_name): pushing to a new branch in origin
    • leave blank: pushing to existing branch in origin
  • git pull:
    • leave blank: Pull new changes to your local repo
    • (--allow-unrelated-histories): Allow unrelated histories from a branch that isn't connected/pulling from upstream

About

This is a repo to help understand git commands

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published