Everything starts with a problem trying to checkout your repository master branch:
git checkout master error: pathspec 'master' did not match any file(s) known to git.
Trying to checkout origin does not improve things, but at least is a step forward:
removing some folders from git, file .gitignore with these contents:
# Ignore paths that contain generated content.
Using symbolic links for /files directory:
run "ln -s /var/www/crucerista/sites/crucerista.net/files/ /var/www/crsta/current/sites/crucerista.net/"
run "echo 'finished'"
I have had this issue recently, with a git branch which did not want to to react to push. That's what a was having:
$ git [email protected]'s password Counting objects: 5, done.
Delta compression using up to 2 threads.
ng objects: 100% (3/3), done.
Writing objects: 100% (3/3), 303 bytes, done.
Total 3 (delta 2), reused 0 (delta 0)
error: unable to create temporary sha1 filename ./objects/17: Permission denied
fatal: failed to write object
sudo git reset --hard origin/8.x
issue summary template: http://drupal.org/node/1155816
http://drupal.org/project/dreditor --> for chrome/firefox
Novice tags are good for starting to contribute.
Applying a patch in Drupal core:
1. Download the patch,
2. apply: git apply -v [patch]
There is a simple way of upgrading or executing a command immediatly after a push has been done.
We just need to go to the server repository (the one which is going to receive the push), and enter in hooks (.git/hooks or hooks if it's a bare repository).
Then, we rename the post-receive.sample to post-receive, without extension, and add this content:
echo "Post receive hook: Updating User Staging"
git pull origin master
Creating new files:
git add .
git commit -m "first file in blessed repository"
git clone /Users/air/gitlab/blessedrepo
git add .
Let me got directly to the point. The bitbucket documentation is wrong, on the begining you are just suposed to do a git remote add origin
in the directory which you want to commit. But this will not work:
fatal: Not a git repository (or any of the parent directories): .git
Solution? Init the repository:
git remote add origin https://[email protected]/ACCOUNT/REPOSITORY.git