Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check out file in Git?

I just started using github.com and my friend and I are working on a project. How can I pull parts of the project but check out certain files I'm working on so he doesn't work on them. He can still download the files but he won't be able to open or edit them until I upload them back and give permission?

like image 706
ranzy Avatar asked Oct 12 '22 16:10

ranzy


1 Answers

I suppose you mean lock a file when you edit it. Git won't let you do this and it's not something you need to worry about. Instead, you can both work on the same file and then merge your changes later.

like image 110
Elbert Alias Avatar answered Oct 16 '22 23:10

Elbert Alias