Move/Migrate your existing/new repository to Azure Repo
- Create Your New repository
in my case I have created “FabrikamFiber”
- Open command prompt and
go to your local code directory :
- In my case it will be
“C:\Ashok\Test\FabrikamFiber>”
- In my case it will be “C:\Ashok\Test\FabrikamFiber>”
Local code directory
- Run the following command step by step
> git init
> git remote add
FabrikamFiber https://ITS@dev.azure.com/DEMO-Account/ /_git/ FabrikamFiber (get this path from step 2. Push existing
repository using command line)
Change origin in actual command
with your repo name
> git push -u
FabrikamFiber –all
Change origin in actual command with your repo name
This should push your code
repository to specified Azure repo. Please refer to following screen for your
reference.
In case if you get following error while executing push command.
No refs in common and none specified; doing nothing.
Perhaps you should specify a branch such as 'master'.
Everything up-to-date
Please try
the following command in order and then try pushing the code
Ensured my untracked files are
tracked
git add -A
Performed a local commit
git commit -m
"first version" -a
Now push the files to my remote
repo
git push -u
FabrikamFiber master
Comments
Post a Comment