S
S
svilkov872017-01-26 00:40:08
git
svilkov87, 2017-01-26 00:40:08

How to work on one project if you work on 2 different computers?

Good afternoon!
I'm about to work on a project that uses git and gulp. Of course there is a repository on github.
I will work on this project in the office, at one computer from 1500 to 1800, and from 2000 to midnight - at another computer.
Over these time periods, saves and changes will vary.
If you specify the question, then you need the ability to somehow get the project with all the latest changes made on the previous computer.
Re-upload project every time from github?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry, 2017-01-26
@svilkov87

Goodnight.
Well, yes, at 18:00 you make a commit to github, and at 20:00 you get a new version from github and at midnight again - a commit to git.
PS It turns out the following scheme:
1) 15:00, turn on the first computer, do git fetch origin
2) 18:00, do git push origin branch_name, turn off the computer
3) 20:00, turn on the second computer, do git fetch origin
4) 24 :00, git push origin branchname, shut down computer

E
Eugene, 2017-01-26
@Eugen_p

I need the ability to somehow get the project with all the latest changes made on the previous computer.

Isn't that what git is for?

T
tvelforce, 2017-01-26
@tvelforce

git add. /git push not?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question