Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to keep repo local only

ArgTang February 18, 2015

If i hava a repo that i dont want to push out in the wild, Can i prevent it from pushin into the internet?

2 answers

1 vote
Cesare Jacopo Corzani
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 18, 2015

If your repository is hosted using bitbucket you can simply go to the setting page on bitbucket website and put it as private repository.

0 votes
Cesare Jacopo Corzani
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 18, 2015

You can check from the shell your upstreams:

git remote -v

the output will be something like:

origin    https://user@bitbucket.org/user/demo.git/wiki (fetch)
origin    https://user@bitbucket.org/user/demo.git/wiki (push)

So it will be:

git remote rm origin
Cesare Jacopo Corzani
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 18, 2015

or you can simply copy your project in a new folder and "git init". That project will be just local until you add a new upstream. With this method you will lose the previous commit history.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events