Issue pushing new code in Github

If this is your first push, then you might not care about the history on the remote. You could then do a “force push” to skip checks that git does to prevent you from overwriting any existing, or differing, work on remote. Use with extreme care! just change the git push **-u** origin master change … Read more

How to push a local Git repository to another computer?

If you have access to a shared directory, you can (see git clone and git remote): git clone –bare /path/to/your/laptop/repo /shared/path/to/desktop/repo.git git remote add desktop /shared/path/to/desktop/repo.git That will create a bare repo, referenced in your local repo as “desktop”. Since it is bare, you can push to it (as well as pull from it if … Read more