The right way to do this is:
git mv repo.git/webapp/* repo.git/.
git rm repo.git/webapp
git add *
git commit -m "Folders moved out of webapp directory :-)"
More Related Contents:
- How can I add a blank directory to a Git repository?
- Download a single folder or directory from a GitHub repo
- In a Git repository, how to properly rename a directory?
- How do I add an empty directory to a Git repository?
- How to git ignore subfolders / subdirectories?
- How to pull specific directory with git
- How does git handle folder permission?
- How do I preview stash contents in Git?
- Change Git repository directory location.
- git clone from another directory
- Delete multiple remote branches in git
- github: server certificate verification failed
- How to list files ignored with ‘skip-worktree’
- VS Code / Bitbucket / SSH – Permission denied (publickey)
- Xcode 9 commit: Couldn’t communicate with helper application
- Can git permanently ignore a remote branch?
- git push to remote repository “Could not read from remote repository”
- How to set up git over http?
- How to keep git from changing file ownership
- Calling ‘git pull’ from a git post-update hook
- unstaged files gone after git reset –hard
- Git diff says subproject is dirty
- git pull keeping local uncommitted changes
- getting “fatal: not a git repository: ‘.'” when using post-update hook to execute ‘git pull’ on another repo
- How do I show my global Git configuration?
- Why does ‘git commit’ not save my changes?
- Viewing full version tree in git
- Is it possible to set a git commit to have a timestamp prior to 1970?
- How to make ‘git diff’ ignore comments
- Git slows down Emacs to Death – How to Fix this?