Given you’ve set up a git daemon on <url>
and an empty repository:
cd <localdir>
git init
git add .
git commit -m 'message'
git remote add origin <url>
git push -u origin master
More Related Contents:
- How do you clone a Git repository into a specific folder?
- Ignore files that have already been committed to a Git repository [duplicate]
- What is the best (and safest) way to merge a Git branch into master?
- How do I show the changes which have been staged?
- Easy way to pull latest of all git submodules
- Viewing unpushed Git commits
- Download a specific tag with Git
- How to compare files from two different branches
- What should be in my .gitignore for an Android Studio project?
- How to specify the private SSH-key to use when executing shell command on Git?
- Undoing a ‘git push’
- What’s the difference between ‘git merge’ and ‘git rebase’?
- Handle git branching for test and production
- How to embed bash script directly inside a git alias
- How to remove a dangling commit from GitHub?
- Import existing source code to GitHub
- gpg failed to sign the data fatal: failed to write commit object [Git 2.10.0]
- Push commits to another branch
- Is there a way to put multiple projects in a git repository? [closed]
- How to configure git bash command line completion?
- How to enter command with password for git pull?
- Force add despite the .gitignore file
- Define git alias with the same name to shadow original command
- Managing many git repositories
- How to apply unmerged upstream pull requests from other forks into my fork?
- Need to reset git branch to origin version
- git push heroku master says “Everything up-to-date”, but the app is not current
- Block a git branch from being pushed
- Git remove root commit
- What is git doing when it says it is “resolving deltas”?