Update git tags from upstream to forked repository

As I run a fork of WriteFreely, I constantly need to sync it to original (so called upstream) repository.

GitHub has detailed documentation how to sync forked repository but I came up with a problem – new tags were not appearing on my repository on GitHub even though they could be seen locally:

gytis@desktop:~/writefreely$ git tag
v0.1.0
v0.10.0
v0.11.0
v0.11.1
v0.2.0
v0.2.1
v0.3.0
v0.4.0
v0.5.0
v0.6.0
v0.7.0
v0.7.1
v0.8.0
v0.8.1
v0.9.0
v0.9.1

Thing is that just git push origin master didn't push tags – to do that need to run following:

gytis@desktop:~/writefreely$ git push -f --tags origin master
Counting objects: 2, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (2/2), 1.54 KiB | 790.00 KiB/s, done.
Total 2 (delta 0), reused 2 (delta 0)
To github.com:gytisrepecka/writefreely.git
 * [new tag]         v0.11.0 -> v0.11.0
 * [new tag]         v0.11.1 -> v0.11.1

And then all went fine – go get command from update WriteFreely from source tutorial pulled correct version and build the right version.

Make sure to also read my full walkthrough how to build WriteFreely from source.


My name is Gytis Repečka, I am Data Engineer currently working with PostgreSQL and Linux infrastructure on AWS cloud. Writing code in SQL, Go and Bash. Experienced data professional (Teradata, Informatica) with focus on Inmon's data warehousing architecture (10 years). I enjoy using, promoting and contributing to open source software and love communicating about tech to both advanced and non-tech people.