Skip to content

Instantly share code, notes, and snippets.

@seanmcdonnellblog
Last active December 5, 2018 23:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seanmcdonnellblog/d008f51c77c9d9e0c024752730bfd417 to your computer and use it in GitHub Desktop.
Save seanmcdonnellblog/d008f51c77c9d9e0c024752730bfd417 to your computer and use it in GitHub Desktop.
GIT Init and Sync
# Initialise the local GIT repository (Needs to be run from the repository directory
git init
# You should see the following output "Initialized empty Git repository in C:/users/user/source/repos/.git/"
# Run the follow command to show the hidden Git file. This tracks any changes made to the repository
dir -ah
# To sync to the Azure DevOps Project, use the HTTPs push command found in your Azure DevOps Project under "Repos"
git remote add origin https://xxxxxx@dev.azure.com/xxxxxx/IaaSv1/_git/Blog
git push -u origin --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment