Correct, the SO answer is good. If you have two PCs connected and you are doing direct connections, you my also get into issue/distinction between bare repositories and those with worktrees.
If you have say an account on GitHub (other providers are available), then when you push/fetch and pull from there, you will (with a moments thought) realise that the remote account never has your work checked out. It is 'bare'. This means that you can push/fectch/pull without any clash between what in sin your work tree and what is being put into the repo. When PC1 try to push to PC2 and the desitination is the branch that is already checked out, Git will refuse to allow the confusing state to be created where the checked out worktree does not reflect the content of the (same) branch being pushed. It will happily allow other branches to be updated. Thus, while getting started, it's easiest to go via a bare repo host service. The remaining aspect that will take a moment to appreciate is the "Remote Tracking Branches (RTBs)", which are actually held locally and are 'last sync point' - and as you already noted about the number of files, Git will compact all the data it stores so there is no overhead to having them. Philip PS Git stores snapshots of your files, not diffs, despite often showing the diffs. ----- Original Message ----- From: edgaroliveira....@gmail.com To: Git for human beings Sent: Saturday, September 03, 2016 11:46 AM Subject: [git-users] Re: response different in same version git on different computers Hello, I was search for an answer about this problem and I found this: http://stackoverflow.com/questions/16288176/your-branch-is-ahead-of-origin-master-by-3-commits According to this answer the differ between of the output the git status is relative of than repository is clone and another is the directory which started the project. Am I right? This means which output like [code] On branch master Your branch is ahead of 'origin/master' by 1 commit. (use "git push" to publish your local commits) nothing to commit, working directory clean[/code]it's impossible configure on directory which started the project?thanks sexta-feira, 2 de Setembro de 2016 às 22:06:37 UTC+1, edgaroli...@gmail.com escreveu: Hello everyone, I have git install on different pc, and on this pc I have different behavior on result of the command "git status". After did some git commit I do git status and have this two situation: PC1 [code] On branch master nothing to commit, working directory clean[/code]PC2[code]On branch master Your branch is ahead of 'origin/master' by 1 commit. (use "git push" to publish your local commits) nothing to commit, working directory clean[/code]I would like have the same detail in response of the git in same machine. How can I fix this?Note: the environment is the same, version git 2.7.4 and Lubuntu 16.04 LTSthanks -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.