Search code examples
gitgithubbitbucketgit-commit

How to handle temporary saves on GIT?


I have been playing around with GIT and I am getting the hang of it. I do have a small question relating to temporary saves. Say I create a feature branch off of the main branch and do some implementation on the feature branch. So at the end of the day I want to just save the implementation on the feature branch, do I just commit and push it to the remote feature repository or do I create another branch for the temporary save?

Could someone please shed some light on it.

Thank you.


Solution

  • You must commit and push it to the feature branch. If your remote repository doesn't have this branch, it will be created automatically. When your feature is fully implemented, you can merge your feature branch with the main branch of your repository.

    I found this little article which might give you a good overview of git branches: https://help.github.com/en/articles/about-branches