[Fixed]-Cloning from Microsoft Azure to local git repository

1👍

You need to use only git clone repository command. What you are trying to do is not the cloning, but instead of that a whole bunch of different actions.

0👍

You just need to clone the repository (Each repository can be used as a source). For example:

git clone <git_url_azure> my_dir

You may need to change the origin remote branch afterwards.

However, you may also need to create a clone in which you can push from other directories (Like a backup). In this case you need to create a “bare” directory, ie a directory that contains only the database but is not populated:

git clone --bare my_dir

This will permit creating a clone based on it:

git clone my_dir my_new_dir
cd my_new_dir
... (Some modifications, commits, branches...)
git push origin

Leave a comment