S
S
Sly Fox2014-07-03 16:08:24
git
Sly Fox, 2014-07-03 16:08:24

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

3 answer(s)
I
iamnothing, 2014-07-03
@Sly__Fox

Use branches (branches) - there's nothing wrong with them :) 'git checkout' allows you to jump between branches/commits/tags

E
Eugene, 2014-07-03
@EvgenijDv

Read the documentation for example.
Or take this course. Very fast and very helpful

A
Alex Kheben, 2014-07-03
@zBit

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.

proffit!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question