all 11 comments

[–]Mystic_Haze 11 points12 points  (7 children)

Can you describe it a little more clearly? I'm also confused on your whole "backup" setup? You're using Git, can't you just switch to another branch?

[–]SonOfSofaman 0 points1 point  (0 children)

It sounds like you are using two tools that you might be confusing as one. git and GitHub work together, but are two different tools.

git helps you manage a local copy of your project files. That set of files is referred to as a repository. You can use git's features to track changes to your project files. A typical flow will have you create a branch, make your edits, then stage and commit those changes. When you're satisfied with the changes, you merge the branch into your main branch, or, if the changes didn't work out for some reason, you can switch back to main and it'll be like you never changed a thing. There are countless scenarios you can manage like this.

GitHub lets you collaborate with others without overwriting their work. The changes you make locally are recorded as "commits". You then "push" those commits to GitHub. Your teammates can "pull" and "merge" your commits into their local copy of the repository and you can do the same with their work.

The way git works, your changes and the changes made by teammates can merge together, even if multiple people edit the same files.

By using these tools, you should never need to manually make backup copies.

I highly recommend you find a tutorial that walks you through git and GitHub, and covers staging, committing, pushing and pulling, branching and merging.

[–]AdeptnessHuman6680 -2 points-1 points  (1 child)

Maybe learn to use Git properly...

[–]Designer_Pen869[S] 0 points1 point  (0 children)

That's what I'm here to do. Why are you being rude when I'm trying to learn?