I have a remote git repository and I have cloned one branch
git clone -b branchName git@servername:/home/myproject.git
I make changes in my cloned repo and I commit.
I run a git log –pretty=oneline and I see my commit message
I then go a git push
I do another re-clone and I do not see my last commit
On the repository server, I run a git log –pretty=oneline and I do not see the last commit.
What am I not doing correctly?
Do
(or do
git checkout branchnameand then dogit log)to verify if the commit is there or not. Otherwise you might have been checking the log of master.
If that is not the problem, make sure your push did go through fine and you did not receive some errors.
PS: It is also a good practice to do
git push origin branchname, especially if you are creating a new branch and also you want to push this branch alone.