I made myself the owner of a toolchain in someone else's space and need to change the git repo. I can see the toolchain and select "Input type", "Builder Type" etc.. How do I add a new Git repository and Git URL (greyed out)?
Here's how you can try changing the GitHub repo URL
Navigate to your created toolchain, On the Overview page of the
toolchain, hover over the Delivery Pipeline card.
Click Delivery Pipeline.
You need to update the Build stage. Click the gear on the BUILD stage
and select Configure Stage.
Click the INPUT table and change the Git Repository.
Click Save and click the run icon to start the BUILD stage.
For more details, you can check here
Related
A shelveset I've created has conflicts with a branch. I'm able to see the shelveset on Azure Devops, on a link like http://blah:8080/tfs/blah2/blah3/_versionControl/shelveset?ss=blah4%3BCORP%5Cblah5 , but I can't see how to visualize what conflicts there are between the shelveset and a branch.
Is it possible to view the conflicts, and if so, how?
If you are using Visual Studio, you can click Pending Changes in Team Explorer and click Resolve Conflicts. Then the resolve conflicts page will be displayed and you can choose compare to view conflicts there. Please check below screenshot.
You can also go click Actions, select Find Shelvesets, double click your shelveset. And right click on the files under Changes to Unshelve and choose compare with latest version, which will compare the files diffs with the latest version in server.
Then you can refer to this microsoft document to resolve the conflicts.
Hope above helps.
I am using Eclipse Neon for Github, to be able to push changes.
I already have a Github account and made a specific repository just for trying, but nothing ends up in the repository, though I follow guides and do exactly the same without getting any errors, but ending up with an empty Github repository (except for the Readme file that I created along with the repository at the website).
I've made several Java Projects with a simple main method, and a method for just writing a dummy message, simple, but doesn't exist in repository.
Then I right click the project, select Team -> Share Project and select:
Repository: NewGit - /home/jannik/NewGit.git, working tree: /home/jannik/NewGit and Path within repository: dummy and click my dummy project and press finish.
Now I right click my project again and choose Remote -> Push and choose the default option called Configured remote repository which says origin: https://github.com/< my-github-account>/eclipseTest.git which tells me that it links to my repository named eclipseTest (which I made on website).
I then press Next and press *Add all Branches spec and clicks next, and then Finish. I then get a dialog saying that Master and NewGit branches are up-to-date, though my dummy project is missing.
If I try the Commit option in Eclipse, I get an error saying that there're no staged files
What am I doing wrong?
Before being able to push anywhere, you need to add and commit first.
See "EGit/User Guide/Commit" for adding and committing.
Its Track Changes sections shows how to add files to the index.
Click Team > Add to Index on the project node. (This menu item is named Add on older versions of Egit.)
Then:
Click Team > Commit in the project context menu.
Finally, you can push.
go to >Theam > commit >
you will get the changed list of files and in those you can move changed files to staged changes block and then commit.
See this image you can find the solution:
I have a Github repository containing a Dockerfile. Linked to this repository there is a Docker(hub) repository for the autobuilding. The autobuild works fine.
One of the steps of this Dockerfile is to download files from another (third) Github repository: the software to run inside the container.
The question is whether there is a known mechanism for triggering the Docker image when this third repository (containing the application source code, and not the dockerfile) is updated?
Thanks.
In Docker Hub, go to your repository and look at "Build Setting" > "Build Triggers". This will give you a URL that accepts POSTs and triggers a build.
Then go to the Github repository that should trigger the build and add that trigger-url under "Settings" > "Webhooks & Services" > "Webhooks" and you can choose when Github POSTs to it (triggering the build).
I have created a repository on Github and have the project in my Eclipse. I also have the Egit plugin and Github plugin. I've looked all over the internet for help on this, but I at last must turn to the Stack Overflow community.
How do I add my java project from eclipse into my repo on Github?
There are a few tutorials out here on how to import projects from git into eclipse.
Though, you can follow these steps:-
Choose the "Git" Perspective, from Window->Perspective->Open Perspective->Other, and then search for Git and select it. This opens the Git repositories view.
From the "Git Repositories" view , choose the option which says "Clone a git repository and add the clone to this view."
Follow the wizard, enter all the details.
Choose the branches you want to import.
Choose the local directory, select clone the sub-modules.
You can choose to import all existing projects by checking the box against "Import all existing eclipse projects", now or you can selectively import projects later. Hit finish.
The git repositories view will now show your repository.
Now you will need to import projects from this repository, only if you havent selected the "Import all existing eclipse projects" box before.
Right click on your repository from the Git Repositories view. Select "Import Projects" option.
Check the radio option, "Import existing Eclipse projects", select the project from your working directory. Click next and then hit Finish.
The Project Explorer should now be showing your project listed there and the name of the branch in square brackets.
Make changes, add files, edit files, once you are ready to make your first commit. Right click on your project under Project Explorer, select Team->Pull.
If this is your first commit, it will say Nothing to update - everything up to date. Hit Ok. Otherwise, it will download the changes, if there are merge conflicts , it will show you those. There are other tutorials which will guide you through dealing with merge conflicts.
Right Click again on your project, select Team->Commit.
This opens a Commit Changes window, leave a meaningful commit message.
Select Commit and push.It should ask you for your username and password, you can check the box, which says store these.
Should show Pushed to origin with Message Details. Hit ok, and you are done with your first commit.
Select a project. Right click, Team->Share. Select the Git provider. Follow the wizard.
I have a project which I have been on for ages which is not connected to any source code repository.
I want to start using BitBucket now, however I am not sure how to go about it. I have created a project in BitBucket.
Should I now clone and check out in Xcode or should I add a repository in xcode. Anyone have any idea?
I have tried cloning using the URL from bitbucket but it just comes back with an error in Xcode
I've met the same problem and here's how I solved it:
(Assume your project is not already under local source control) Create a new project under LOCAL source control (Please note that adding remote source control at this stage may not be successful)
Make this new project a clone of your old project - drag files, add frameworks, etc.
In menu "Source Control" -> -> "Configure "
In the new window, click on "Remotes" -> "+" -> "Add Remote"
Name: anything (you can use "BitBucket")
Address: https://accountname#bitbucket.org/accountname/reponame.git
"Source Control" -> "Commit"
Select "push to remote" at the left bottom corner
Click "Commit"
Check on BitBucket website to see if it's actually pushed to it
As of 2017, xCode now automatically creates repositories for new projects. To push to a new BitBucket repo, go to 'Source Control' > 'Commit...' in xCode and make your first local commit.
Next open a terminal and navigate to to the top-level directory of your project. If you ls -a in here you should see the .git/ directory has been created. In the same directory, add your remote repo with the following (replace with your username/team name and repo name):
git remote add origin https://USERNAME#bitbucket.org/USERNAME/REPO_NAME.git
Go back into xCode, go to 'Source Control' > 'Push...'. You'll be prompted to enter your BitBucket password. Press OK and you're done! Source control commands will now be working within xCode.
I did that through command line and it is fairly straightforward.
create a new repo on bitbucket
assuming your xcode project is not under local git version control yet
go to command line, cd to your xcode project directory, and the follow the bitbucket doc: https://confluence.atlassian.com/display/BITBUCKET/Import+code+from+an+existing+project
git init
git remote add origin git#bitbucket.org:<user_id>/<repo>.git
git add .
git commit -am 'init commit'
git push -u origin master
go back to xcode and you should be able to interact with bitbucket through xcode from this point on
Using the following URL structure
https://accountname#bitbucket.org/accountname/reponame.git
(Taken from here) did the job for me
It is easier to:
create your local Git repo through XCode and add your code there
in command line, add the remote 'origin' toward your BitBucket repo, along with your ssh credentials (in ~/.ssh/config): see
"Bitbucket + XCode 4.2 + Git".
"Using the SSH protocol with bitbucket"
do at least one "git push myrepo origin master" to initiate the first push
This link helped me, I will also copy and paste the instructions in case the link goes away.
http://sketchytech.blogspot.com/2016/02/send-xcode-project-to-bitbucket.html
Sending a non-git Xcode Project to BitBucket from GitHub is the most popular place to host your repos but if you are looking for a free service for teams that are 5 members or less then take a look at BitBucket. Here are instructions for moving a local Xcode project onto BitBucket. (Note: if you opted for a local Git when you created your project you should be able to skip steps 3 and 4.)
-Sign-up for BitBucket and create a repo
-In Xcode go to Source Control menu
-Select "Create a working copy ...."
-Select project and press Create in dialog window
-Return to Source Control menu and select -> Configure ...
-Click "Remotes" tab
-Press add "+"
-Copy and paste the https address you see at the top right of your repo page into the remote location in Xcode
-Go to Source Control menu and select Push... to upload the project
Pushing code updates to BitBucket
Now you have it set up whenever you want to push code to the project:
-Go to Source Control menu and select Commit
-Write a commit note and uncheck anything not to be included in the commit
-Return to Source Control menu and select push
-Select the correct branch and Push
Pulling code down from BitBucket repo
To get code provided by others down from BitBucket:
-Go to Source Control menu and select Pull.
I use SourceTree and Xcode 6.1 and in my case I first create a repository on bitbucket, then I clone my repository on an empty folder (using SourceTree or via command line) then when you create the new project on XCode in that folder, you can commit push and pull normally from XCode
I found this youtube video and it helped me a lot, used this Atlasssian help for ssh authentication, and encountered an Xcode problem for which the solution can be found in this page.
Most simplest way is go to
Xcode > preference > #accounts > click '+' button on corner left
... then this popup will appear ...
just click Bitbucket Cloud ...
Enter ID with password...
And that's it...