Git Commands
A page with commands that will help you work with both local Git and Github. Here are the most frequently used Git Commands
Git Website
Main Commands
git init - init git on your dir
git help - check all git command
git status - check git status
git clear - clear terminal
Branch Commands
git branch - check the selected branch
git branch name-branch - create branch
git branch -D name-branch - remove branch
git checkout name-branch - change branch
Push Commands
git add . - add files to gitHub
git commit -m 'name commit' - commit files to gitHub
git push - push changes to gitHub
Merge Command
git merge name-branch - merge active branch with select branch
Connect with GitHub Commands
git remote add origin link - connect local git with gitHub
git push -u origin master - push changes to gitHub