Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Update Repo from another computer

Deleted user September 11, 2018

Hi,

 

I worked on my project on a diffferent machine locally (no internet connection ): Now I would like to update the already existing repository with the older project version with the actual results.

 

How would I have to setup in general my second computer for this? Where to care? Where can I find the Repo`s URL?

 

I guess it will be something like this:

 

   git remote add <name> <url>

and then push using the remote name

    git push <name>

 

THX

2 answers

0 votes
Deleted user September 11, 2018

Where can I see the repo ´s URL?

0 votes
Yogesh Mude
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.
September 11, 2018

HI @[deleted]

Welcome to the community1

First of all, clone the repo to your new system and then initialize it.

$ git clone <Repo URL>

$ git init

Once done this change to that directory and copy or reapply the changes to the cloned repo and then add to it.

$ git add .

After that commit and push the changes to the remote repo.

$ git commit -m <commit_message>

$ git push <branch_name>

Yogesh Mude
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.
September 11, 2018

HI @[deleted]

Once you click on the respective repository, at left side panel you can find the clone, commit, pull request, source options.

Select the clone option, you can see the repo URl ..Https or SSH.

Deleted user September 11, 2018

will try

Deleted user September 11, 2018

which name should I use in

git push <name>

I get the following:

 

On branch master
nothing to commit, working tree clean
$ git push origin master
fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Yogesh Mude
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.
September 12, 2018

HI @[deleted]

Could you please confirm your remote URl name...Using below command

$ git remote -v

It will returns you the remote repo name with URL.

Just put the same name while pushing the data to remote repo.

$ git push <branch_name>

Please have a look at the below KB as well.

https://confluence.atlassian.com/bbkb/fatal-origin-does-not-appear-to-be-a-git-repository-306348429.html

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events