Answer the question
In order to leave comments, you need to log in
GitHub, is it possible to switch between commits?
We got into such a situation with a friend that we need to write 1 project for two. We decided to learn Git for convenience. Well, since we are not very friendly with the console (I hope so far). We are trying to do everything using the client from GitHub. We started a repository, got both rights to it, created several commits. And as a matter of fact, the question has ripened, but how now, for example, to roll back between them? The client itself persistently downloads the latest version of the code and everything would be fine, but if I want to return to the version that was a day ago?
Answer the question
In order to leave comments, you need to log in
Use branches (branches) - there's nothing wrong with them :) 'git checkout' allows you to jump between branches/commits/tags
Read the documentation for example.
Or take this course. Very fast and very helpful
Look towards Git Workflow and learn to be friends with the terminal.
But in general it will look like this:
кодер1: изменил файл, git commit, git pull (допустим конфликтов не возникло), git push.
кодер2: изменил файл, git commit, git pull (если возникли конфликты, решает их), git push.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question