Skip to main content

git commit tag steps

Adding git tag to your actions.

The regular process that I work to is

git add -A
git commit -m "some comment"
git push

With git tag, whilst there are many options for how you can apply git tag, this initial step I'll keep simple.  As follows:

Drupal contrib module changes save to a patch file

If you edit a Drupal contrib module, the next time the module is updated those edits will be wiped.  So they are not lost there are a couple of options for you to consider:

  • Are the edits worth the contributing to the community?  Yes, you can fork the repo and add the changes for the developer(s) to review; or
  • Create a patch file

 

Creating a patch file

The process:

Changing git push from passphrase

Changing git push from passphrase?  There are several ways to tackle this step.  I'm going to focus one of these steps.

From your web directory root, look for your .git directory.  Then open the .git...

cd .git

Next using your shell prompt (iTerm2), view the contents of the config file

vim config

Presently the config file looks like the following

Adding a Git repo to a server

git clone git@bitbucket.org:{username}/{repo}.git

And I was unceremoniously delivered the following error

fatal: could not create work tree dir '{project}': Permission denied

My initial thought was the error due to server permission... being sudo.  This was tested by running the command

sudo git clone git@bitbucket.{username}/{repo}.git

Which generated the error

Subscribe to Git