0
I’m having trouble working with a remote branch of git:
We have a server on our internal network where the project is. Two programmers will work and it has two branches: master and Devel. We intend to maintain the master practically untouched, so we will develop our work in the Devel.
On the server I created the branch Devel, and when I go to work with her I clone:
git clone //10.0.0.100/projeto --branch Devel
In the local copy I work normally and run the commits concerning what I am doing:
git add .
git commit -m "Teste de alterações"
At the end of the job, I send it to the server:
git push origin Devel
However, when clon in another location (or other machine) the branch "Devel", comes none of the changes.
Where did I go wrong?
What is the message when executing the push command? Is the remote set correctly? Check using: git remote -v
– egomesbrandao
When I give the command I get the return:
origin //MEUSERVIDOR/MEUPROJETO (fetch)
origin //MEUSERVIDOR/MEUPROJETO (push)
– WebGerente
@egomesbrandao I’m sending the push without any additional flag only
git push origin Devel
even when I’m doing, I’m getting the feedbackEverything up-to-date
– WebGerente
Basically what I want is: Keep two branches on a server on my internal network (no password needed for access or anything), where two programmers will work, when they go to work they will clone the project locally and when they finish making the modification they will send it back to the server. I’m almost there, I just don’t know why (despite the "up-to-date) message when I clone,.
– WebGerente
I want to know if the remote is set up (git remote -v) and if the up-stream is set up (git branch --all), to know if you’re sending things to the right places, because it looks like you’re "commiting" on a branch and it’s not connected with some remote.
– egomesbrandao
@egomesbrandao ok... The return to the command
git remote -v
isorigin //10.0.0.100/projeto (fetch)
origin //10.0.0.100/projeto (push)
and return to commandgit branch --all
is* Devel
master
remotes/origin/Devel
remotes/origin/master
. I can confirm with certainty that locally I am commiting in the right branch, in the MINGW64 bash account the Branch(Devel)
at the end. I thank you in advance for the attention.– WebGerente