Our company development projet's source control has been hosted on hub.jazz.net for over a year and now the project has just been upgraded to an IBM Bluemix Continuous Delivery toolchain.
Right now the only way I have been able to get oursource and modify it on Windows 7 has been to generate a token on the web site and git clone in a DOS prompt and provide the token as password when prompted.
I have been using TortoiseCVS, TortoiseSVN and TortoiseGit for a dozen years and generating the SSH key with OpenSSL and putting it on the web site works, but TortoiseGit's Pageant does not want to load it.
Does anyone have a procedure that works as of 2017-06 ?
TIA!
I just installed TortoiseGit and Putty and was able to successfully clone a repo from git.ng.bluemix.net via SSH. I followed these directions to ensure I was using Pageant to configure my SSH key: https://tortoisegit.org/docs/tortoisegit/tgit-ssh-howto.html
Can you share more details on what exactly you're seeing? What happens when you attempt git clone via SSH in a DOS prompt?
Thanks #Robin for getting me to try SSH again, I had given up on it ("immediate gratification always takes too long").
The following recipe now works correctly for me with TortoiseGit version 2.1.0.0. I can clone, commit and push correctly from an updated Bluemix Git repo with TortoiseGit only.
Log in to hub.jazz.net > click My Projects > click project name > click the "use the new toolchain" link > click on the Git link (in the box in the middle)
Copy my project's SSH link that starts with "git#git.ng.bluemix.net"
Click on my name link > click on the pencil image icon on the upper right of the page > click on "SSH Keys" tab
Open Puttygen version 0.67 from my TortoiseGit menu folder > select SSH2-RSA radio button > click Generate button > copy key from field "Public key for pasting into OpenSSH authorized_keys file" (make sure to copy everything by scrolling all the way down, this was likely my mistake earlier) > paste into Bluemix "Key" field of the web page https://git.ng.bluemix.net/profile/keys
In Puttygen, click the "Save private key" button > Save as PPK extension file in a location you will find easily later.
(optional) In Puttygen, click the "Save public key" button > Save
Open Pageant from TortoiseGit menu folder > this action will bring up an icon in the bottom right of your screen in the Windows taskbar > right-click on icon > select the "Add Key" item in the pop-up menu > add the just-generated private key PPK > right-click on icon > select the "View Keys" item in the pop-up menu > make sure your key was loaded.
Next, open an empty folder in Windows Explorer > right-click in the emptiness > select the "Git Clone..." item in the pop-up menu > this opens the TortoiseGit Clone dialog window > paste the project's SSH link > enter the desired project branch > Pray > click the "OK" button.
This cloned my Git repo correctly .
I modify a README text file > Commit > Push and that works. We are back in e-business.
I hope this helps out someone else!
Related
While, submitting my pull request on github I saw some of the images are displaying the message Git LFS file is not shown and I'm having all the images in my working branch.What does that mean?
I suspect this problem maybe related your github settings for Git LFS.
Could you double check that it's enabled?
How to check Git Large File Storage Configuration
These are the actual instructions on the link.
Sign in to your GitHub Enterprise instance at http(s)://[hostname]/login.
Rocketship icon for accessing site admin settingsIn the upper-right corner of any page, click the Rocketship icon.
Site admin settings search fieldIn the search field, type the name of the repository and click Search.
Site admin settings search optionsIn the search results, click the name of the repository.
Admin ToolsIn the upper-right corner of the page, click Admin.
Admin ToolsIn the left sidebar, click Admin.
Disable buttonIn the Git LFS section, click Enable or Disable.
I'm having trouble adding and cloning my repo on bitbucket to the sourceTree app, we're only starting with this now and we're a small company, so there's not much knowledge around this.
now I've gone through The documentation on sourceTree for help, but I've noticed when I select my repo on bitbucket, it uses the repo url I select and appends a .git at the end. Then a notice message says This is not a valid source path / URL, but when I click Details... I get a dialogBox with nothing in it and an ok button. and when I'm done entering the details the 'Clone' button remains disabled.
Is this Windows 8 or am I actually doing something wrong?
Now I usually use ubuntu, but we just got these new ASUS ultrabooks at work and it's a pain to install any linux Distro on here. So I'm stuck with windows 8
So it turns out git AND mercurial are both disabled by default (idiots) so
I clicked on `Tools > Options' and selected the git tab, you'll find it's disabled if you've just installed it, click the enable button.
and then to execute the shell commands given by the SourceTree documentation you can click the Terminal button in the main SourceTree interface
I downloaded the SVN plugin for eclipse and I am now having trouble connecting to the repository I need. I have the URL that I should be adding (it works on my school's computer). However I don't think it is doing what it should be. I included a picture that shows the pop up window when I try to add a new repository on eclipse. It is creating a folder inside of my eclipse folder in applications when I attempt to add this. The dialog on this window looks different than the one that comes up at school. This particular window will only let me select "file system"? I believe that is just creating this repository on my own computer? What do I need to do to connect to a remote repository?
http://s23.postimage.org/e4s7iso7f/screen_capture.png <- pic here
Please follow these steps:
Window, Open Perspective
Select "SVN Repository Exploring"
Once you are there, if SVN Repositories is not showing, go to Window,Show view, and select "SVN Repositories"
Now right click on the empty area of the SVN Repositories to have the context menu show up
Select "Repository Location"
Enter the URL and a label of your choice
Enter username and password if necessary and click "Save authentication"
Click Finish
I suspect that you are selecting "New Repository" instead of "Repository Location".
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...
I followed the steps from Egit user guide, but I get an error message with auth fail.
What I do:
I have copied the public key from Window > Preferences > Network Connections > SSH2 > Key Management to GitHub under account settings
Then I do
Team > Push...
I enter the git#github.com:.... uri and click next. But then I get the error:
**Cannot get remote repository refs
Reason: git#github.com:.... : Auth fail**
What could be the problem?
Thanks
Old question, but for future reference:
Make sure you did setup a push remote. It worked for me when I got both the Cannot get remote repository refs-problems ("... Passphrase for..." and "Auth fail" in the "Push..." dialog).
Provided that you already:
Setup your SSH keys with Github (Window > Preferences > General > Network Connections > SSH2)
Setup your local repository (you can follow this guide for that)
Created a Github repository (same guide)
... here's how you do it:
Go to the Git Repositories view (Window > Show View > Other > Git Repositories)
Expand your Repository and right click Remotes --> "Create Remote"
"Remote Name": origin, "Configure push": checked --> click "OK"
Click the "Change..." button
Paste your git URI and select protocol ssh --> click "Finish"
Now, click "Save and Push" and NOW you should get a password prompt --> enter the public key passphrase here (provided that you DID (and you should) setup a passphrase to your public key) --> click "OK"
Now you should get a confirmation window saying "Pushed to YourRepository - origin" --> click "OK"
Push to upstream, but this time use "Configured remote repository" as your Destination Git repository
Go get yourself a well earned cup of coffee!
Check my solution from this related question:
"Auth Failed" error with EGit and GitHub
Briefly: set GIT_SSH environment variable with a path to the system ssh executable before launching Eclipse. Far from nice but works.
For Ubuntu:
> export GIT_SSH=/usr/bin/ssh
> eclipse
I finally fixed this on my platform (mainly was a key issue but also critical not to have a leading slash before the repo path in the dialog pictured above). You can see more details in my post here, if you like:
http://www.eclipse.org/forums/index.php?t=msg&goto=648905&S=9bcfa96ab726d744d41a19c7fb02d723#msg_648905
Good luck!
Melissa
DO not forget to add .git to the repository name in the URI : field
for example if ur username is Decoderx and git repository name is foo
URI :https://github.com/Decoderx/foo.git
and not "https://github.com/Decoderx/foo" this solved this problem for me.
You can try and follow this tutorial, using the git+ssh protocol:
git+ssh://git#github.com/path_to/repo.git.github
Just git#github.com alone wouldn't work.
http://wiki.eclipse.org/EGit/User_Guide#Github_Tutorial