setup remote repository - having trouble - tortoisegit - windows

I have a local repository on my pc, and did this with Tortoisegit.
I also have an Amazon Web Services EC2 instance running Windows Server 2012, and have also installed Tortoisegit on there. I have opened port 9418(TCP), and created inbound firewall rules for it. I have a domain pointing to the server, and the server is accessible via HTTP (running apache) at my domain.
I have created a folder c:\Repos on the SERVER, and have set the HOME environment variable to point to this. Inside Repos I created a new folder named ProjectX.git, and then using the tortoise shell right click, created a BARE repository at the new folder.
I want to do an initial PUSH of my local repo, to the one on my server, by adding the server as a remote, but I'm not sure I have the url right.
// also for clarification who is user?
// Do I use the windows username?
git://user#hostname/ProjectX.git
Please refrain from 'elitist' answers such as 'use CLI idiot' or 'why dont u take the time to learn git properly instead of using gui shortcuts', which I see all over git questions online. GUI is there for a reason, enough said.

Decided that there just simply isn't enough good documentation out there to get the git:// protocol setup on windows, and to permanently share repos, i opted for SCM Manager. Which happens to work great. Very easy setup.

Related

work remotely on heroku with vscode and commit changes

I want to code directly on production with VSCode, make some changes, and commit them (for fast prototyping, not a live server). I'm testing responses from external services, so I need a publicly-accessible URL.
Is that possible with heroku?
When I SSH intro Heroku from a terminal, I can't git commit cause I get fatal: not a git repository
Also, running heroku ps:exec on VSCode remote extension pack doesn't work.
No, this is not possible on Heroku without some very awkward hoop-jumping. Heroku is a platform-as-a-service provider, not a remote workstation.
I'm testing responses from external services, so I need a publicly-accessible URL
Your best bet may be to use something like ngrok or localtunnel.
These tools let you temporarily route traffic from a publicly-accessible address to your local development environment. At a high level, it looks something like this:
Start your development server locally
Start ngrok or localtunnel locally
Take the publicly-accessible URL the tool gives you and tell the external service to use it

How to connect to jenkins installed in mac from a different system

I have installed Jenkins in mac and it can be accessed with http://localhost:8080. When I try to add a git webhook, it says 'Couldn't connect to Server'. How can GitHub connect to Jenkins installed in mac?
I have installed all the Git plugins. I have tried with github personal token and github password too.
No code involved here
I expect the github webhook to connect to jenkins server
You need to configure webhook in GitHub first:
set url in configuration of webhook as follows:
http://YourIpAddress:8080/github-webhook/
Now, configure jenkins as mentioned below:
Setup you deploy keys (ssh keys) first in GitHub and Jenkins Credentials and then add github project info to your project, put ssh url of git repository (if repository is private), select webhook SCM hook pulling in Build triggers window of the respective project and add your other settings.
Now try to run this, it should work fine if all these steps followed.
Bitbucket can't connect because your localhost is not accessible from the internet.
What are you trying to use jenkins for?
Usually, you would want it to be installed on a server, not your local machine. That way it can be accessed by other team members and other tools/services such as Github.
Github or Bitbucket are internet based services.
As they are hosted "outisde" your network, these services cannot reach your ip (ie: 192.168.0.1.120)
Depending on your internet access provider, you might have a "public" IP visible from internet.
Once you'll have it, you then need to expose your port "8080" (Jenkins one) through your firewall or router...
Please notice opening firewall to well known service port is a risk to consider.

Setup a git server on a windows

I want to setup a Git server on a windows machine. I wanted to set it up on an apache server. I know it can be done, but cannot find any documentation on how to do. Do you know any documentation I can user? Rather than HTTP, I would like to set it up over SSH. But can't find any SSH servers for windows. Do you know how I can solve this problem?
I believe a combination of gitolite and TortoiseGit for your clients might do the job.
Here is a blog post that documents this process reasonably well: http://therightstuff.de/CommentView,guid,b969ea4d-8d2c-42af-9806-de3631f4df68.aspx

Can gitlab be installed with Cherokee web server?

I've looked all over and can't figure out if you could use Cherokee instead of Apache or Nginx for gitlab. I'd rather not run multiple webservers (and imagine that they could conflict anyway). I'm giving this a shot on Ubuntu Server 12.10.
For the record, I've already installed gitlab with this guide up to the Nginx section (with all default settings other than passwords, email addresses, and hostname). I'd like to install gitlab at git.mydomain.com and I would prefer for the local server files to be located at /var/www/git.mydomain.com, as I keep all of my domains under /var/www/.
Since you already have all of the Ruby config done, you just need to hook cherokee
up for hosting RoR by following this guide http://cherokee-project.com/doc/cookbook_ror.html
My only problem turned out to be an issue with Ruby. Once that was resolved, I set up gitlab to use a port (though sockets should work too). Everything seems to work pretty well, except for an issue with pushing over HTTPS, but that might have something to do with my local Eclipse/eGit install.
So yes, gitlab will work with Cherokee.

how to setup a SVN server with collabnet subversion edge on windows server, and how to connect to it remotely using Xcode on Mac?

I am a newbie about SVN server. I've certainly used SVN to check in/out codes before, but never learned how to setup a Subversion server it up from ground up.
What I have:
Server | Windows Server 2012 Standard, Activated:
Installed Collabnet Subversion Edge,
Created a repository,
Created users and also started the server, using start button at GUI on localhost:4434/csvn/.
Client | MacOSX Mountain, with Xcode 4.5 Installed:
I have tried to add repository by using the external IP address and the repository name
like https://1.1.1.1/svn/, but as expected, it does not work and says "Host is unreachable".
I have tried to use the local hostname, no luck either. Although I did notice in their documentation, they mentioned IP address setting, but I cannot find it anywhere.
I would like to make it so that users can access and use the SVN repository remotely and locally.
I have no idea what to do, please help me. Thanks for your time!
Go back to the server for a minute. When you are configuring it, are you only using the local web browser? Have you tried accessing the server using web browser from your Mac? I would see if the Mac can reach the web gui first. Maybe you have network issues you have to resolve, such as DNS, routing or firewall.
In terms of using XCode, or any SVN Client, the URL you must enter is the URL to your repository. That will not be:
https://1.1.1.1/svn/
It will be something like:
https://1.1.1.1/svn/reposname
In the Subversion Edge web GUI if you go to the list of repositories, you will see an example checkout command next to each repository. This command shows you the URL to enter in a SVN client to reach the root of the repository. Example screenshot here:
https://ctf.open.collab.net/sf/projects/svnedge/screenshots/screens/repos/repos.png
I think I have sloved the problem. I knew I have to access the repo using my external IP address somehow, but when I tried something like, for example my IP is 1.1.1.1, when I typeed https://1.1.1.1/svn/reposname, I got a no response message.
I figured that since there are more than 1 computers on my local network, the router has to somehow direct the request to my server only, not some other machine. After some reaserch I found that port forwarding does the trick. Since apache server uses port 80 as default, just get the default gateway ip using ipconfig from CMD, then enable port forwarding for port 80, to the server's local ip address. At least I can access it using my external ip on my local network. I will try to access it remotely and see.

Resources