Tags » Git

How to delete a tag from local and remote

To delete a tag from the local git use the following command

git tag -d <tag version>

Eg:

mw@mw:~/home/mprojects/mewanthawrite2$ git tag -d 2.0.9
Deleted tag '2.0.9' (was 72e8b6b) 76 more words
Git

How to push a new tag to master or branch

In How to create a new local tag we found out how create a tag and now lets see how to push it to the master branch or a specific brand. 78 more words

Git

How to create a new local tag

To create a new tag use the following command

git tag <tag version>

Eg:

mw@mw:~/home/mprojects/mewanthawrite2$ git tag 2.0.9
2.0.7
2.0.8
2.0.9

Note: How to check git current tags… 21 more words

Git

How to check git current tags

To check the current tags of a git project use the following command

git tag

Eg:

mw@mw:~/home/mprojects/mewanthawrite2$ git tag 
2.0.7
2.0.8

Note: How to create a new local tag… 21 more words

Git

How to remove files from git (local and remote)

Say you want to remove the .idea/ directory from the local and remote git repository.
First take a pull

git pull

Then remove the file/directory from the local repository… 38 more words

Git

How to add a .gitignore to a project

To add a .gitignore to your project from shell, first go to the project main directory. Then execute the following command.

touch .gitignore

Eg:

mw@mw-pc:~/learning/python/Python-Basics$ touch .gitignore
mw@mw-pc:~/learning/python/Python-Basics$ 
mw@mw-pc:~/learning/python/Python-Basics$ 
mw@mw-pc:~/learning/python/Python-Basics$ ll
total 24
drwxrwxr-x 5 mw mw 4096 ජූනි   15 14:26 ./
drwxrwxr-x 3 mw mw 4096 ජූනි   15 13:45 ../
drwxrwxr-x 8 mw mw 4096 ජූනි   15 14:15 .git/
… 23 more words
Git

Ignore File permission changes from git

Hi folks,

Recently i had met a strange problem in git. I have edit only 2 files. But when i run git status command, it shows all the files are modified.I dunno why and I’m so confused. 61 more words

Magento