Quantcast
Channel: Getting the last commit hash from a remote repo without cloning - Stack Overflow
Browsing all 4 articles
Browse latest View live

Answer by stevec for Getting the last commit hash from a remote repo without...

Just a note in addition to @gturri's answer, that you can also use the name of the remote (as opposed to the url).E.g. if you push with something like: git push heroku master, then you could usegit...

View Article



Answer by gturri for Getting the last commit hash from a remote repo without...

$ git ls-remote https://github.com/gturri/dokuJClient.git 2fb540fc8c7e9116791638393370a2fa0f079737 HEAD2fb540fc8c7e9116791638393370a2fa0f079737 refs/heads/masterThis command can be run from any...

View Article

Answer by sTodorov for Getting the last commit hash from a remote repo...

One way would be the following:Initialize your local repo: git initAdd your the remote to it: git remote add myRemote "https://myremoterepo"Fetch the repo and check the history for the last commit: git...

View Article

Getting the last commit hash from a remote repo without cloning

I want to get the hash of last commit that has happened in a remote repo without cloning it. Is there a way to do this ? I found several methods but for all of them to work, I need to clone the repo...

View Article
Browsing all 4 articles
Browse latest View live


Latest Images