hey guys, I'm not sure if this is the correct place to post this... but anyways, what is git clone?
to my knowledge, it just downloads a repository branch to a local folder.
does it automatically update the downloaded branch or not?
if not, is there anyway to have it automatically update when there's a commit?
[QUOTE]what is git clone? To my knowledge, it just downloads a repository branch to a local folder[/QUOTE]
That's all it does in all honesty.
[QUOTE]does it automatically update the downloaded branch or not?[/QUOTE]
It will download the most recent commit when you run the command, [B][I]but it won't update your local copy by itself[/I][/B]. You'll need to use "git pull" (or the "sync" button in the Git windows client) to pull any changes to your local copy whenever a new commit is pushed to the repo in question.
[QUOTE]if not, is there anyway to have it automatically update when there's a commit?[/QUOTE]
The only way I know of is to have a web server pull changes (and compile them if you want). A quick google got me these 2 results:
[URL="https://github.com/antriver/auto-git-pull"]PHP based automated Git Pull[/URL] and a [URL="https://github.com/Keenpoint/git-auto-pull"]Javascript automated Git Pull[/URL].
You can run a webserver on your desktop and run either of those 2 scripts if you wanted (just point the "final directory" to where you put the cloned repo).
[QUOTE=Zenamez;52533772]That's all it does in all honesty.
It will download the most recent commit when you run the command, [B][I]but it won't update your local copy by itself[/I][/B]. You'll need to use "git pull" (or the "sync" button in the Git windows client) to pull any changes to your local copy whenever a new commit is pushed to the repo in question.
The only way I know of is to have a web server pull changes (and compile them if you want). A quick google got me these 2 results:
[URL="https://github.com/antriver/auto-git-pull"]PHP based automated Git Pull[/URL] and a [URL="https://github.com/Keenpoint/git-auto-pull"]Javascript automated Git Pull[/URL].
You can run a webserver on your desktop and run either of those 2 scripts if you wanted (just point the "final directory" to where you put the cloned repo).[/QUOTE]
Well shit lol, thanks my man! I appreciate it!
Sorry, you need to Log In to post a reply to this thread.