How can I use git-archive to include submodules from a bare repository?

Based on answers and comments here. You can create non-bare repo and run: git ls-files –recurse-submodules | tar caf ../prog.tar.gz -T- To handle files starting with hypen, use –verbatim-files-from To put files in folder inside the archive, use –xform s:^:prog/: Full version: git ls-files –recurse-submodules | tar caf ../prog.tar.gz –xform s:^:prog/: –verbatim-files-from -T-

How can I uncommit the last commit in a git bare repository?

You can use the git update-ref command. To remove the last commit, you would use: $ git update-ref HEAD HEAD^ Or if you’re not in the branch from which you cant to remove the last commit: $ git update-ref refs/heads/branch-name branch-name^ You could also pass a sha1 if you want: $ git update-ref refs/heads/branch-name a12d48e2 … Read more

What’s the -practical- difference between a Bare and non-Bare repository?

Another difference between a bare and non-bare repository is that a bare repository does not have a default remote origin repository: ~/Projects$ git clone –bare test bare Initialized empty Git repository in /home/derek/Projects/bare/ ~/Projects$ cd bare ~/Projects/bare$ git branch -a * master ~/Projects/bare$ cd .. ~/Projects$ git clone test non-bare Initialized empty Git repository in … Read more

How to convert a normal Git repository to a bare one?

In short: replace the contents of repo with the contents of repo/.git, then tell the repository that it is now a bare repository. To do this, execute the following commands: cd repo mv .git ../repo.git # renaming just for clarity cd .. rm -fr repo cd repo.git git config –bool core.bare true Note that this … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)