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
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>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
will try
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.