Refreshing Remote Repositories Failed Sourcetree

Hello,

I am having an error when I try to push my changes to a remote repository.

Sourcetree 4.0.2, macOS 10.15.6. Any attempt to view remote repositories on github gives me 'Refreshing Remote Repositories Failed.' Error contents are.

Garcea Si Oltenii Gratis Download; Garcea Si Oltenii Online; Atat politistul Garcea cat si oltenii Leana si Costel au de-a face cu o piatra magica,ce dateaza de pe vremea cavalerilor.Aceasta piatra ii aduce impreuna atat pe ei,cat si pe multi altii,precum mercenari din Rusia,agenti FBI,si multi alti soldati din diferite tari ce doresc sa puna mana pe aceasta roca fermecata,ce detine puterea de. Oct 29, 2019 Why do we need to refresh “ REMOTES ” status in SourceTree? Assuming that all members of your team are working in a repository. One day, a member of your team deleted a remote branch in the repository and other members should get a refresh on their SourceTree’s “REMOTES” to know that, that branch was deleted. Sep 21, 2020 This command sets the “origin” URL to be equal to our SSH URL. Now that we’ve run this command, our existing Git repository will use the SSH URL to connect to the remote version of the repository. If you are cloning a new repository, you don’t need to change the URL with which you are working.

Refreshing Remote Repositories Failed Sourcetree

This is a sumarry of what I did:

1- On the remote server, create the repository using 'git init /root/my_project'

2 - On the remote server, I added the files with 'git add file.txt'

3 - On the remote server, I've commited my changes with 'git commit -a -m 'description of commit'

4 - On my machine, I've used git clone ssh://root@192.168.1.2:22/root/my_project/

5 - Then on my machine, I make some changes to files and commit them using the same commands as on the remote server.

6 - Then, after the commit, I try to use the command 'git push' with defaults to my origin and the master branch but I always get the same error message:

root@192.168.1.2r's password:Counting objects: 5, done.Delta compression using up to 2 threads.Compressing objects: 100% (3/3), done.Writing objects: 100% (3/3), 317 bytes | 0 bytes/s, done.Total 3 (delta 2), reused 0 (delta 0)remote: error: refusing to update checked out branch: refs/heads/masterremote: error: By default, updating the current branch in a non-bare repositoryremote: error: is denied, because it will make the index and work tree inconsistentremote: error: with what you pushed, and will require 'git reset --hard' to matchremote: error: the work tree to HEAD.remote: error:remote: error: You can set 'receive.denyCurrentBranch' configuration variable to

remote: error: 'ignore' or 'warn' in the remote repository to allow pushing into

remote: error: its current branch; however, this is not recommended unless youremote: error: arranged to update its work tree to match what you pushed in some

remote: error: other way.remote: error:remote: error: To squelch this message and still keep the default behaviour, set

FailedRefreshing remote repositories failed sourcetree softwareSourcetree

remote: error: 'receive.denyCurrentBranch' configuration variable to 'refuse'.To ssh://root@192.168.1.2:22/root/my_project/ ! [remote rejected] master -> master (branch is currently checked out)error: failed to push some refs to 'ssh://root@192.168.1.2:22/root/my_project/'

Can you guys help me with this? I don't know where I am wrong.

Your remote server has to be 'bare' and it doesn't look like yours was...

Refreshing Remote Repositories Failed Sourcetree Download

Hence the error message 'By default, updating the current branch in a non-bare repository remote: error: is denied...'

Your command should've been something like this:

~ $ git init --bare my_project.git

I hope that helps

Refreshing Remote Repositories Failed Sourcetree Report

Best Regards

AJ

Refreshing Remote Repositories Failed Sourcetree System

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.