Basic commands of git

1. To initialize and setup a git central repository
> git --bare init central_repo

2. To push to central repo from clone
> git push origin master

3. To check available branches
> git branch

4. To create a branch
> git checkout -b <branch name> origin/master
> git checkout -b <branch name> origin/<existing branch name>

5. To reset changes on branch
> git reset --hard <old branch name>


Popular posts from this blog

Network Manager

CCSP Domain 2 : Cloud Data Security - Part 1

Secured web server