git push .git/description file

Is it possible to push the changes in the .git directory to a remote repository?

I wish to have a common project description and not have to re-enter it for all the clones of my repository.

  • Merge only one file from forked git repo
  • Issue with removing a git submodule
  • How to include part of another git repository using git subtree and merge updates in both directions
  • Springsource git creates nested folders
  • Show the full command when executing a Git alias?
  • Sharing Specific folder with Two Repositories in Git
  • It’s strange that the project description is something that is not common to each clone.

  • push vs. bundle vs. tar zcvf — to backup entire local .git
  • git rerere manual resolution only
  • Create ANT script to build on Tavis-CI and run JUnit tests on commit
  • How to structure git repository for a client-server project
  • Line Ending Problems in GIT
  • merge git projects without common commit
  • One Solution collect form web for “git push .git/description file”

    You could store a description (or .description, if you don’t want it to be visible) in the root of your repo, and then symlink .git/description to that in each repo, like so:

    repo/
      .description
      .git/
        description -> ../.description
    

    You’d have to set up the symlink manually in each of your repos, but you’d only have to do that once (when the repo is created).

    Or you could use a post-receive hook to copy your tracked description file into .git/description. You’d have to set up that hook on each remote repo, too, but again, that would only need to happen once (when the repo is created).

    Git Baby is a git and github fan, let's start git clone.