/* ------------------------ My Meta Content Here SEO ------------------------ */

Pages

Main Menu

Sunday, September 29, 2019

GIT Commands

Important GIT Commands:

npm config --global set proxy http://yogesh.upreti@gmail.com@23.90.64.10:8080
npm config --global set proxy http://yogesh.upreti@gmail.com:10080

git config --global http.proxy http://yogesh.upreti@gmail.com@proxy.domain.com:10080
git config --global http.proxy http://yogesh.upreti@gmail.com@23.90.64.10:8080

http://dev.azure.com/YOUR_PROJECT_PATH
Step 1: Pull the updated data before commit
git pull

Step 2: Add the changes made by you
git add .

Step 3: Commit the changes with the detailed comment whatever you have done if single file then use "-m"
while if you have made changes in multiple files then use -F
git commit -m "Changes comment"

For multiple comment first create a text file where you want
git commit -F "Changes comment" 

To log your commit changes comments. Like this given below
git commit -F "../CommitDetails.txt"

Step 4: Finally push the changes that are made by you using:
git push

Check Status: Like 'Your branch is up to date with 'origin/master'.'
git status 

Check log: Checking log of the commit changes
git log

Changing the git remote origin url:

D:\Yogesh\Project\MY_PROJECT_PATH>git remote set-url origin https://dev.azure.com/YOUR_PROJECT_PATH/_git/YOUR_PROJECT_PATH.Web
Check the Remote Origin URL
git remote get-url --all origin

D:\Yogesh\Project\MY_PROJECT_PATH> git remote set-url origin https://dev.azure.com/MY_PROJECT_PATH_API/_git/MY_PROJECT_PATH_API.API


D:\Yogesh\Project\MY_PROJECT_PATH> git remote get-url origin https://dev.azure.com/MY_PROJECT_PATH_API/_git/MY_PROJECT_PATH_API.API
git push 

git stash

git reset --hard

Git Clone: Creating clone of project.
git clone -b DEV https://dev.azure.com/MY_PROJECT_PATH_API/_git/MY_PROJECT_PATH_API.API

No comments:

Post a Comment

My Blog List

  • काश - काश मुझे भी पीने की आदत होती,मैं कब का मुर्दा हो गया होता। छुटकारा मिलता आज के आतंकवाद से, किसी संतान भूमि में सो गया होता। मेरा एतबार कौन करेगा, मैंने मुर...
    3 months ago
  • काश - काश मुझे भी पीने की आदत होती,मैं कब का मुर्दा हो गया होता। छुटकारा मिलता आज के आतंकवाद से, किसी शमशान भूमि में सो गया होता। मेरा एतबार कौन करेगा, मैंने मुर...
    3 months ago
  • Kumaon University Nainital B.Ed entrance exam test result 2012 - कुमाऊँ विश्वविधालय, नैनीताल (उत्तराखण्ड)
    10 years ago