Git and GitHub Beginner Tutorial 7 - Git Tags - what, why, when and how
HTML-код
- Опубликовано: 4 окт 2024
- All Courses - automationstep...
Git TAGS - What | Why | When | How
Today We will learn:
-------------------------------
1. What are tags / releases
2. Why should i create TAGs
3. When to create TAGs
4. How to create TAGs in git
create | show | publish | delete
Step 1:
Checkout the branch where you want to create the tag
git checkout "branch name"
example : git checkout master
________________________________________________________
Step 2:
Create tag with some name
git tag "tag name"
example : git tag v1.0
git tag -a v1.0 -m "ver 1 of .." (to create annotated tags)
________________________________________________________
Step 3:
Display or Show tags
git tag
git show v1.0
git tag -l “v1.*”
________________________________________________________
Step 4:
Push tags to remote
git push origin v1.0
git push origin --tags
git push --tags
(to push all tags at once)
________________________________________________________
Step 5:
Delete tags (if required only)
to delete tags from local :
git tag -d v1.0
git tag --delete v1.0
to delete tags from remote :
git push origin -d v1.0
git push origin --delete v1.0
git push origin :v1.0
to delete multiple tags at once:
git tag -d v1.0 v1.1 (local)
git push origin -d v1.0 v1.1 (remote)
________________________________________________________
Checking out TAGS
We cannot checkout tags in git
We can create a branch from a tag and checkout the branch
git checkout -b "branch name" "tag name"
example : git checkout -b ReleaseVer1 v1.0
________________________________________________________
Creating TAGS from past commits
git tag "tag name" "reference of commit"
example : git tag v1.2 5fcdb03
_______ ONLINE COURSES TO LEARN _______
Visit - automationstep...
----------- UI TESTING -----------
Selenium Beginners - bit.ly/2MGRS8K
Selenium Java Framework from Scratch - bit.ly/2N9xvR6
Selenium Python - bit.ly/2oyMp5x
Selenium Tips - bit.ly/2owxc50
Selenium Builder - bit.ly/2MKNtlq
Katalon Studio - bit.ly/2wARFdi
Robot Framework - bit.ly/2Px6Ue9
----------- API TESTING -----------
Web Services (API) - bit.ly/2MGafL7
SoapUI - bit.ly/2MGahmd
Postman - bit.ly/2wz8LrW
General - bit.ly/2PYdwmV
----------- MOBILE TESTING -----------
Mobile Playlist - bit.ly/2PxpeUv
----------- CI | CD | DEVOPS -----------
Jenkins Beginner - bit.ly/2MIn8EC
Jenkins Tips & Trick - bit.ly/2LRt6xC
Docker - bit.ly/2MInnzx
----------- VERSION CONTROL SYSTEM -----------
Git & GitHub - bit.ly/2Q1pagY
----------- PERFORMANCE TESTING -----------
JMeter Beginner - bit.ly/2oBbtIU
JMeter Intermediate - bit.ly/2oziNVB
JMeter Advanced - bit.ly/2Q22Y6a
JMeter Tips & Tricks - bit.ly/2NOfWD2
Performance Testing - bit.ly/2wEXbLS
----------- JAVA -----------
Java Beginners - bit.ly/2PVUcXs
Java Tips & Tricks - bit.ly/2CdcDnJ
----------- MAVEN -----------
Maven - bit.ly/2NJdDRS
----------- OTHERS -----------
Redis- bit.ly/2N9jyCG
Misc - bit.ly/2Q2q5xQ
Tools & Tips - bit.ly/2oBfwoR
QnA Friday- bit.ly/2NgwGpw
Sunday Special - bit.ly/2wB23BO
Ask Raghav- bit.ly/2CoJGWf
Interviews - bit.ly/2NIPPxk
All Playlists - bit.ly/2LSiezA
----------- Follow -----------
Facebook - / automationstepbystep
Twitter - / automationsbs
RUclips - / automationstepbystep
You can support my mission for education by sharing this knowledge and helping as many people as you can.
Thanks a ton sir. In the age of click baits and non-sense intros, You were on point and clear. Subscribed ! :)
Most Welcome!
Thank you, Sir. short, clear, informative, exact, and directly to the point. Well done and keep it up!
Most welcome Hamed
Very simplicist and clear. So much quality. Thank You.
Most welcome Freq
subscribed immediately... long time since I saw a tutorial so straight forward and helpful... thank you very much and keep it up!
Benjamin, thanks for subscribing and liking the video.
You explain so clearly Raghav .. Probably the best tutor for testing tools ... Thanks a huge .. Appreciate your effort!
Thanks a lot for this wonderful message Dhanavarsha. I am humbled.
Thanks Raghav for such a wonderful and precise explanation in a short video. Really appreciate your knowledge and efforts. Keep it up! Thanks..
Most welcome Yogesh
Today, I realized that I want to know how to manage `tagged' versions of code in various projects. I knew how to do it via the webUI, but this video showed me how to do it from command-line. Thanks again!
Most welcome Warron
Thanks a lot👍 I got the clarity point to point, and exactly the introduction I was looking for 👍
You are welcome Vrity
this tutorials is the best with sample code in the description, not all heroes ware cape, salute!
I appreciate that! happy & humbled to see your message
Liked all the Raghav's videos , the way he explains and content he took is very good , simple and clear, keep it up and expecting some more DevOps concepts like ansible and other stuff ... :)
Happy to see this Srinath, Will do more devops topics
So accurate video on git tags
Thanks a lot Aniket.. humbbled
Thanks Raghav. all your sessions are really really good, interesting and useful . I have learned Jenkins and Git from your tutorial. Thanks for that.
Also could you please record and post few sessions for Ansible please...
Great video, crystal clear about the git tag concept. Amazing tutorial
Glad it was helpful Vishnu
short, informative, no boring parts. thanks
Glad it was helpful Sam
Wonderful video tut man! Very detailed and with no bs! Exact and straight to the point!
Glad to know it helped John
This was an absolutely perfect presentation. Beautifully done. Loved it.
Thank you so much Elliria
A video on pulling the data from remote repository, comparing files and resolving conflicts would be very helpful here !!! Thanks for the series !!!!
Sure, will try to add some soon.
@@RaghavPal Waiting for a video over this topic
@@RaghavPal Hi, Can you add one please?
Clear and Concise. The best tutorial about Tags. Thank you. ❤
Glad it was helpful!
Really amazing video on git tags. Simple and Easy. Thanks a lot. Subscribed!!
Awesome, thank you Sadiq
The best video about it so far.
Thanks a lot Arturo
Clear concise and to the point.
Thank You Sir 🙏
Most welcome
great simple straight forward video - this helped alot - always make videos like this!
Sure George
One of the best series of tutorials... priceless!!!
Thanks for your message Shashika
A simple and clean one. Helps for the newbies in git tagging.
Thanks
I am glad it helped Nishanthi.
Jai Shri Ram
Absolutely stellar content, Raghav! 🚀 The clarity in explanations and well-crafted examples make learning a joy. Your work is an invaluable resource for expanding my knowledge. Keep the brilliance coming! 🌟💻📚
Awesome, thank you!
great tutorial! clean and straight to the point with great visual aid.
Happy to know it helped Daniele
You are a rock star, i have watched almost 10 videos on git but couldnt get the clear, but luckily after watching your videos i have now got a good idea on this and also just curious to know there are only 7 git videos and can we expect
Hi Sandeep, great to know this, Yes as of now there are 7 videos in this series.
well done. nicely explained. Git tag is the best one so far in this series. Please post tuts on git cherry pick topic
i am glad it helped. Keep learning.
I loved the video, straight to the point and with good examples.
Thanks Piter
Your way of explanation is awesome ! I have been following your videos and learning a lot from it. Thanks for helping learning community. Will you be making series on other technologies like AWS, Ansible, Puppet etc ?
Hi Krish, i am glad to hear this. I will definitely be making sessions on these topics.
Excellent video! Concise yet thorough. Well done and thank you!
You're welcome Ben
You explain it really well. Good job dude !
Thanks Bona
A neat and tidy one. Thank you so much!
Most welcome Tan
You made it simple and clear.
So happy to know Soma
Great explanation, Sir. Thank you very much!
Most welcome Tural
Raghav thank you so much again for your amazing video.....your videos are always clear and easy to understand...hope to see your videos on postman api test..
Mayuri, thanks for watching. Will add more on api testing soon.
Hi Mayuri, link for Postman Beginner Tutorials playlist - ruclips.net/p/PLhW3qG5bs-L-oT0GenwPLcJAPD_SiFK3C
Short and well explained. Great job, thanks!
You're welcome!
You make things seem so easy and cool Raghav.. Always simple and good stuff from you... Nice one.
Thanks for message
Love the video. You explained like I'm five and that's a big plus for any tutorial.
So happy to know this Marvin
you could add times in the description for more convenience. e.g. i was just looking for the how to publish info and had to Fastforward quite a bit
Sure Robin. Hope it was helpful
Extremely great video sir . Please create series of devops video.
Sure Dhananjay
Thank you Sir. I always enjoy your tutorials.....please make a video on git stash and git cherry also.
Sure Mukesh. will do
Thank you so much for your time and effort, for sharing your knowledge with us. Thank you and keep the good work.
Thanks Wilson, appreciate your message
Thanks Raghav, session is useful. After knowing about the tag concept i have two questions in my mind.
what do I do with the tags?
What is their benefit besides just marking a milestone or downloading a working code directly from that tag.?
Hi, you can use a tag to mark an individual point in your repository's history, including a version number for a release
cloudservicestutorial.com/benefits-of-git-tagging-in-devops-release/
Thank you very much sir, your explanation was great 👍
Most welcome Zaib
Great tutorial! Easy to understand
Glad it was helpful
best video on tagging. thanks
So happy & humbled Abdulaziz
Maestro, excellent content. Thanks
Most welcome Jose
Really well explained! Also subscribed immediately.
Thanks a lot
Straight on point , saved time ✊
Glad to know Rakesh
Thanks for these videos mate, it's crisp and clear.
Thanks Sandeep.
so clear and to the point.
Thanks Naveen
Very good tutorial, exactly what I was looking for. Thanks for the effort!
You're welcome Nick
Very clear explanation!
Glad it was helpful Edmund
worth spending 10 mins, Thanks Raghav
you're welcome Naveen
Sweet and simple Thank you!!!
You're welcome Sanjay
Thanks! Exactly what I needed.
Glad it helped!
Very well explained. Thanks
You are welcome Ankit
Clear and concise! Very well done...
Thanks for watching Travis
This was a very good video! Thank you so much!!
most welcome
very clear explanation...keep uploading more such videos
Sure. thanks for watching
Brilliant - well done.
Thanks Martins
very clear content. Thank you very much
You are welcome Sandun
Thanks
you described really well 👍
You're welcome 😊
Awesome tutorial bro. Thanks
Most welcome
wonderfully explained 👍
Glad it was helpful Hitesh
Very clear and neat explanation ever ! Thank you a lot !
You're welcome Outis
So easy to understand and It was very helpful. Thanks a lot for your effort. Already subscribed.
Awesome, thank you Pankaj
Great tutorial. It helped me.
Glad it helped Anatolii
Very good tutorial Thanks !
Most welcome Viraj
Thank you for this tutorial. IT is very simple to understand. :)
Great to know this Michael
excellent session on Git Tags
Great to know this Bhavdeep
Thanks dude saved lot of time
Most welcome Sangram
Thank you, very good tutorial for Git. How are merge conflicts reminded?
Most welcome Mike.
In Git, a merge conflict occurs when multiple branches have changed the same part of a file and Git cannot automatically resolve the changes. When this happens, Git reminds you of the conflict by marking the conflicting lines in the file and requiring you to resolve the conflict before completing the merge.
Here's an example of how a merge conflict may appear in a file:
> branch-name
The > branch-name lines indicate the start and end of the conflicting changes. The ======= line separates the changes made in your current branch from the changes made in the branch you're merging.
To resolve a merge conflict, you need to edit the file and choose which changes to keep and which to discard. You can then use Git to mark the conflict as resolved and complete the merge.
Awesome tutorial buddy. Keep it up!!
Thanks for watching Sardor
Thanks for this video.
Most welcome
Thanks for your efforts
Most welcome
Very helpful, thanks!
Glad it was helpful!
Thank you sir it's helps a lot...☺️
Most welcome 😊
Awesome. Appreciate and thanks for your effort.
I pushed my first tag(version) , thank you ✍
So great to know Suraj
Excellent tutorial! Thanks for share your knowledge!
You're welcome Raphael
Nice video. Very well explained :)
Glad it helped Lakshay
Awesome explanation keep going man Good Luck
Thanks Atul
Thank you so much for your time and effort. It helped me a lot.
Great to know this Walid
Excellent
Thanks for watching
very clear.. thanks
You are welcome Emad
Very informative. Thank you so much.
You're welcome Sandeep
i enjoyed and understood thanks
You are welcome!
you have any videos one if statements or case statements
Thank you very much Raghav, very much helpful to me. Just need a clarification on what is the use of
-u in git push command. Thanks
Hi Koripalli, -u = --set-upstream
stackoverflow.com/questions/5697750/what-exactly-does-the-u-do-git-push-u-origin-master-vs-git-push-origin-ma
Great stuff, thanks
Glad you enjoyed it Germán
Thanks a lot for details ! Subscribed
Awesome, thank you! Ritesh
@@RaghavPal Thanks again ! Excited to check all of ur channel videos .
Keep posting 👏
Most welcome. can check all here - automationstepbystep.com/
Gud one...waiting for your next tutiorals.
Apart from jenkins & git do you have any other tutorials?
Hi Biraj, you can see all playlists here - ruclips.net/channel/UCTt7pyY-o0eltq14glaG5dgplaylists
thanks..can You give some videos on git conflict,git rebase & git fetch & pull
It seems weird that tags aren't committed and pushed like regular code. It's also odd that if I add a tag while on Branch1 and then I delete Branch1 the tag still exists in the Git Repo.
will try to explore more on this
Thanks a lot Raghav!!
It solved my problem :)
This is great to know Tawseef
Thank you very much
You are welcome
a pretty complete video, thanks for this
You're welcome Aldo
great video
Thanks for the visit
Great tutorial, I think I even understood it all. I have been trying to learn more and more about Git for the last 3.5 years and it wasn't until 4 weeks ago that I finally started trying to push commits to something other than the master branch.
Can I git tag something already committed, pushed, and merged into the master branch? Isn't git tagging typically associated with *master* branches anyway?
You can do that Warron. Can get more info here - git-scm.com/book/en/v2/Git-Basics-Tagging
Good Tutorial...!