If you’ve got local source code you want to add to a new remote new git repository without ‘cloning’ the remote first, do the following (I often do this – you create your remote empty repository in bitbucket/github, then push up your source) https://stackoverflow.com/a/8012698/61902
Tag Archives: git
Linking GitHub issues to commits
Connect an issue with a commit after the commit In your issue on GitHub, just write a comment with the commit hash. For instance: Fixed with commit 61d949320fc0bf1a8dba09b3845bddcd153b1a64 https://stackoverflow.com/questions/19036161/connect-an-issue-with-a-commit-after-the-commit#26835572 Link to the issue number on GitHub within a commit message …you can use these synonyms to reference an issue and close it (in your commit …
git – duplicate a repo without forking
git source control with a local repository (no server)
Even when working alone or on simple projects, I like to have the benefits of source control – history, branching, and backup. Here are the common steps that need to be taken to use git in this scenario.