I can push a tag, but not using Push Tag... from the Tags item in the Git Repositories view.
Right-click on Tags
Choose Create Tag...
Entered the Tag name, Tag message and selected the commit using the Advanced button.
Choose OK
With the Tags folder expanded, right-click on the newly created tag and choose Push Tag...
Configured remote repository is already set, so I choose Next
CTRL + SPACE to bring up the list of remotes. (I get refs/heads/master)
Select Finish
I get: rejected non-fast-forward.
I've also tried configuring push with refs/tags/*:refs/tags/*
The Push Tag... wizard is much too complicated at the moment, yes. Try entering refs/tags/<nameofyourtag> as the target ref name.
In EGit 3.2 (to be released in December 2013), the wizard is much nicer, see the screenshot from the associated bug report.
Related
I can remove a local tag very easy in the Git Repositories View of eclipse.
But if that tag was a remote tag (originally) and I make a push - nothing happens. On the next pull that tag will reappear again.
Neither Remote -> Push tags nor Remote -> Push -> Add all tag specs removed that tag from origin. And I've tried Add delete ref specification in the same dialog, but Eclipse won't let me add tag-name or :refs/tags/tag-name.
I know that I can use the command line, as described in "How to delete a git remote tag?", but I didn't find a way to do it from eGit.
Playing with Team -> Remote -> Push I found the solution.
I have to enter in Remote ref to delete:
refs/tags/my-tag-name
and add that to the specifications to push. When I finish the dialog the tag is removed from remote.
The same applies, if I just click Add All Tags Spec (or something else that creates a new row in Specifications to push), click on the Mode column to convert the Update into a Delete and enter the correct ref from above into the Destination Ref column.
Funny thing: The tag is not offered if I open the drop down of Remote ref to delete, but if I use Ctrl+Space I can choose from the list of tags (and branches) and it generates the correct ref spec.
Is it possible in EGit to see the simple history of a file?
Team > Show in history shows all commits to all files. Not useful.
I am looking for the history of a file. There is a button in the History view that says Show changes to selected resource but no way to select a resource.
There also does not appear to be any way to compare with a specific version unless that version has a tag.
The pieces seem to be there, but are they put together properly?
(No complex branching or other cleverness. I normally use the command line for this type of work but should not have to.)
You can open a file (or select it from project explorer) and do:
Right Click -> Team -> Show in history. This will open the following view:
The filter circled in red is: "Show all changes of selected resource and its children" which basically will filter only the commits that relate in any way to the resource you've selected (you can chose the different filters to get a better understanding of how they differ from each other).
The problem was that the Team > Show in History needs to be run from the Project Explorer window. When I first found those scoping buttons I right clicked on the class file's edit window and did the Team > Show in History there. That appears to be broken and only shows all changes.
(Thank you for your replies. Knowing that it could be done and by those scope buttons let me look further. I rarely use the Project Explorer, preferring to just type the class/file name into the Navigate dialog.)
Some other answers suggest clicking on Team > Show in History. This menu item does not show up. Instead, Team > Show Local History shows up.
I have Git Staging tab open all the time. I saved a small change to the file I wanted to see the history of. This caused the file to show up in the Unstaged Changes in Git Staging. I then right-clicked on the file, clicked on Show In and then History. This showed me the history of the file according to Git.
I want to commit my changes in Eclipse (using Git and Gerrit), but I can't generate any changeId that is necessary for the commit process. I haven't found any link during my online search. I checked the keys, I integrated in Eclipse, I can access to the Gerrit Git server without any problem.
Any Idea?
Best
Just for the record:
For the Eclipse EGerrit plugin to work one must:
Install the git commit hook as described here
Click on "Add Change-id" button in Eclipse as pictured
EGerrit "Add Change-id" button location
This will generate an empty change id full of zeroes, which will be replaced automatically with the actual change id after you commit.
If you want gerrit to insert it automatically make sure the file [your_project]/.git/config contains
[gerrit]
createchangeid = true
(The createchangeid = true line should be indented with a tab
If you forgot to add the change id and already committed you can amend your last commit (by clicking the corresponding button: second to the left from the change id button) and then hit the change id button. To add change ids to several commits see the first SO link.
When you create a repository on GitHub, you can optionally create a description of the repository. Unfortunately, I wrote a description that no longer adequately describes the code in the repo.
How do I change the repo description?
They changed the looks slightly, the "Edit" button is seen when on the repositories main page, which is the "Code" tab. Here is a screencast/animated-screenshot:
As of 2020, if you chose the new design in feature preview, meta-information about the repository can be changed by clicking on a cog icon in the right-hand side menu's "About" section:
Upon doing so, a popup will appear where the description, website, topics, and homepage settings can be configured:
Click on the Edit that comes when you hover your mouse over the description and project url section
When you hover over the existing description, an Edit button will appear at the far left.
Just in case anyone else has a similar issue as me...
You cannot edit the description until one or more files are committed and pushed. In my specific case, I created the repository from IntelliJ IDEA and accidentally filled the description with text I had intended for the first commit. However, I didn't actually commit or push any files.
I went to the repositories page on the GitHub website, where I could see the repository and its description from the repositories page. However, when viewing the individual repository page, the description would not appear and suggestions for setting up the project were the only content displayed. There is no clear indication that you cannot edit the description until a file is uploaded, but once you have done so, the description is clearly displayed and with it a link to edit.
Click on the gear icon like in the image, and then change your repository description
Click "Save Changes"
1.Go into your repository.
2.On the right side About and symbol of setting.
3.Click on the setting.
4.You get Edit repository details.
5.you can change details.
You can do so directly from command-line, without having to interact with GitHub website.
Since the GitHub CLI gh 2.4.0, you can use gh repo edit:
gh repo edit d, --description <string>
# Update the description of the repository
press the Gear Button and you will see the description to update it or delete it
As of 2023, Github UI has been updated again and the option is now located in the top-right corner of a repository page. Click on the Gear Icon next to About, and a new modal will pop up where you can change the description of the repository.
Please let me know how to delete a CVS tag which was already created from eclipse.
If the tag is removed, can a new tag be created with same name?
I don't think there's a way from Eclipse...you'll have to go to the command line and run:
cvs tag -d <tag> <file/directory>
or if the tagged files are no longer on your system:
cvs rtag -d <tag> <location_in_repository>
If your aim is to replace the tagged code with the new one, you can simply tag the current code with the same tag name of the existing tag, but be sure to check the option "move tag if already exists".
You can delete your tag and create a new one with the same name.
You can even commit into your tag (you should not do that).
I dont know how to do this with eclipse, I used always Tortoise client.
So you actually can do this from Eclipse. You can hit it from a number of ways, 2 places I've seen it are:
Configure Branches and Versions if you right click on a branch or version in the CVS Repository Exploring view you will see this option
Configure Tags if you do a compare on a project or file in your Java view you will see this option.
From there there's a section in the middle called remembered tags for these projects and next to that is the Remove button that can be clicked after you select the tag in question.