Steps To Configure new folder git setup :
git init
git config --global user.name "username"
git config --global user.email "xxxx@gmail.com"
git remote add origin https://github.com/Dharmend/ang-my-dream-app.git
git config core.filemode false
git pull origin BRANCH_NAME
++++++++++++++++++++++++++++
get single branch checkout directly:
git fetch origin BRANCH_NAME
git checkout BRANCH_NAME
+++++++ Get pull live brnach forcefully (override local files) ++++++++++++++++
git reset --hard origin/BRANCH_NAME
git init
git config --global user.name "username"
git config --global user.email "xxxx@gmail.com"
git remote add origin https://github.com/Dharmend/ang-my-dream-app.git
git config core.filemode false
git pull origin BRANCH_NAME
++++++++++++++++++++++++++++
get single branch checkout directly:
git fetch origin BRANCH_NAME
git checkout BRANCH_NAME
+++++++ Get pull live brnach forcefully (override local files) ++++++++++++++++
git reset --hard origin/BRANCH_NAME
Comments
Post a Comment