Git basic commands

updating git

 git-updating-code..sh

#!/bin/bash
sudo add-apt-repository -y ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git -y


To go to master branch
---->git checkout master

I created git branch in my local and switching in to that,
---->git checkout -b refactor/login

To push to Remote:
---->git push -u origin refactor/login

To go to master branch
---->git checkout master

Comments

Popular posts from this blog

How to run react project after cloning from git repo

How to start React,Angular and Node Apps