KittyCakes wrote:I have GitHub now!!!!!!!!!!!!!! So I don't really know how to use it. I really wanna know how to make a mod with it. So please tell me about GitHub. My username on it is CandyKitty.
git clone https://cloneurl
git add my/file.lua
git commit -m "added my awesome changes"
git push
# typo but not yet pushed?
git commit --amend
# temporally revert changes
git stash
# show stashed changes
git show stash
# apply stashed changes
git stash apply
# get a commit from the original mod you forked or from another fork
git fetch https://origin/url
git cherry-pick 21a3123s1212d313f # (the hash of the commit)
# bring forked mod with less changes simply up to date (this method also works with other forks, thats why i note it this way
git pull https://wanted/repo
# reset your mod completly, even commits
git reset --hard HEAD
# reset your mod to a specific upstream commit
git reset (hard?) 21a3123s1212d313f # (the hash of the commit)
Users browsing this forum: No registered users and 20 guests