At server side, do this:
git config receive.denyCurrentBranch ignore
Then you can push at local.
Related Contents:
- How do I delete a Git branch locally and remotely?
- Definition of “downstream” and “upstream”
- git submodule tracking latest
- Git push error ‘[remote rejected] master -> master (branch is currently checked out)’
- How to undo ‘git reset’?
- What are the differences between double-dot “..” and triple-dot “…” in Git commit ranges?
- Changing capitalization of filenames in Git
- Having a hard time understanding git-fetch
- Global Git ignore
- Undo git reset –hard with uncommitted files in the staging area
- Backup a GitHub repository
- How to undo git init on a home directory?
- Where is the global git config data stored?
- Git push rejected after feature branch rebase
- Merging: Hg/Git vs. SVN
- Writing a git post-receive hook to deal with a specific branch
- Checking out old files WITH original create/modified timestamps
- How do I add files without dots in them (all extension-less files) to the gitignore file?
- Git fetch remote branch
- Git branch command behaves like ‘less’
- Preferred Github workflow for updating a pull request after code review
- What are the differences between “git commit” and “git push”?
- Push commits to another branch
- Is there a way to put multiple projects in a git repository? [closed]
- Checking for a dirty index or untracked files with Git
- How can I automatically deploy my app after a git push ( GitHub and node.js)?
- Prevent commits in master branch
- How do I clone all remote branches?
- How do I find and restore a deleted file in a Git repository?
- How do I create a remote Git branch?
- How to undo “git commit –amend” done instead of “git commit”
- Clone only one branch [duplicate]
- git remove merge commit from history
- What are commit-ish and tree-ish in Git?
- A way to restrict Git branch access?
- How do I delete unpushed git commits?
- How can I revert a single file to a previous version? [duplicate]
- What to gitignore from the .idea folder?
- Show diff between commits
- What does the `..` mean in git branch reference?
- How do I list all remote branches in Git 1.7+?
- Git undo local branch delete
- Git pushing to remote GitHub repository as wrong user
- Git: How can I find a commit that most closely matches a directory?
- How can I get a git submodule’s associated commit ID from a past commit in the parent clone?
- Git is changing my file’s permissions when I push to server
- Git – Ignoring a specific modification to a config file
- Cannot get Http on git to work
- Git pretty format colors
- Delete all files and history from remote Git repo without deleting repo itself