Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I continue working while git pushes?

Tags:

I am doing my initial import of existing code into git, it is quite a big codebase so the push is taking it's time.

From what I am aware git gets the changes and then does the upload, so am I safe to continue working while the push is going, or do I need to wait for it to complete before I modify the files?

like image 410
Hailwood Avatar asked Sep 05 '12 12:09

Hailwood


People also ask

How long does a git push take?

Pushing with git push from the terminal takes less than 5 seconds. Actual behavior: Pushing in Atom takes several minutes.

What happens when you do git push?

The git push command is used to upload local repository content to a remote repository. Pushing is how you transfer commits from your local repository to a remote repo. It's the counterpart to git fetch , but whereas fetching imports commits to local branches, pushing exports commits to remote branches.

Can you git push without committing?

No, you must make a commit before you can push. What is being pushed is the commit (or commits). Save this answer.

Is it safe to git push?

Understand the usage and impact of this popular Git command on your project, learn new safer alternatives, and grasp the skills of restoring a broken branch. Most know that using Git's push --force command is strongly discouraged and is considered destructive.


1 Answers

When Git pushes, it doesn't read or write anything from the working tree, only stuff from the .git folder.

So yes, you're safe to continue working.

like image 177
CharlesB Avatar answered Oct 15 '22 08:10

CharlesB