Jump to content
  • 0
Sign in to follow this  
Aeromesi

Questions using git to update

Question

So for a while when I use a git pull on my hercules it would update to the latest revision. But now since ive been tampering with almost everything (mmo.h, script.c, atcommand.c and a couple others) now its tellingme to commit my changes. So I go to the files with a red mark on them, right click and commit changes then Iit turns green. As I proceed to git pull Iit updates but it overlaps the code I put in and totally messes my hercules up, meaning I cant compile. Is there anyway to stash my edits to the side, then update and reapply all my edits/additions? I have to keep gitting a new hercules and reapply everything... and im afraid at one point I will forget about something and it could break my server. How do I go about this with git?

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

So for a while when I use a git pull on my hercules it would update to the latest revision. But now since ive been tampering with almost everything (mmo.h, script.c, atcommand.c and a couple others) now its tellingme to commit my changes. So I go to the files with a red mark on them, right click and commit changes then Iit turns green. As I proceed to git pull Iit updates but it overlaps the code I put in and totally messes my hercules up, meaning I cant compile. Is there anyway to stash my edits to the side, then update and reapply all my edits/additions? I have to keep gitting a new hercules and reapply everything... and im afraid at one point I will forget about something and it could break my server. How do I go about this with git?

Yes. when you want to pull you need to, you need to save to stash your modification first by:

  • Right Click at the folder>TortoiseGit>Stash Save>'<stash message>' --all>ok
  • Update your Git.
  • to recover you just load it: RIght Click at the folder>TortoiseGit>Stash Pop 'it will apply your latest stash you save'

 

I hope it helps.

 

for better understanding you can view info:

rrk2yp.jpg

Source:tortoiseGit/help

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.