Need help setting up a Git server.

Been following this guide. But it is missing a part regarding SSH support. When I add a locale server, IP-based. It gives me some error about line length and access denied. I suspect that it tries to connect with the wrong user, or something. I have a password on the git user, since it can't be blank.
Could anyone help me with this. I plan on update the with what I learn here. Adding a locale Git server with SSH support.
The server is updated with the latest software. We use a static IP, and SSH is working perfectly.
Ed1t: Fixed typo in subject.
Last edited by MindTooth (2010-02-09 13:18:16)

The first thing to realize is that git works on directories. Network protocols are really just to get access to the remote directory that contains the git repository.
Let's say you've got a ~/code directory.
Enter dir: cd ~/code
Create a file: touch oldfile
Init repo: git init
Add oldfile: git add oldfile
Commit oldfile: git commit -a
Now you're ready to clone the repo. We'll do it locally for easy testing.
Move to home dir: c d~
Clone it to another dir: git clone ~/code clone
Now you've got a ~/clone directory (and repository) that is a clone of the ~/code repository. There is a file named oldfile there (so you know the clone worked)
Now in ~/clone you can create a file: 'touch newfile'.
Add it to be tracked: 'git add newfile'.
Commit the change: 'git commit newfile' OR 'git commit -a' (to commit all changes, which is just this one in this case)
Now push it to the original ~/code repo: 'git push'
Now anytime you pull or clone from the repo you'll get both oldfile and newfile because they are both in the repo (newfile won't show up in the ~/code directory, though) That's really all there is to git at its most basic level. You clone, edit/add files, commit locally, then push to the server.
So now that you've got your repo working you want remote access. If you can ssh into the computer hosting the ~/code repo then you've already got remote access. Use the username of the user whose home directory ~/code resides in (you can worry about real permissions later, as that's a Linux question, not a git question).
From remote computer, clone the repo:
cd ~
git clone ssh://remoteuser@remoteserver/home/remoteuser/code code
Now you have a local ~/code repo and working directory. We operate on it just like we did when we created the ~/clone repo on the other computer. You'll have files named oldfile and newfile if you followed the steps earlier. Let's work on this remote repo:
Create a new file: touch hello.c
Add it to be tracked by git: git add hello.c
Commit: git commit -a
Push to server: git push
That's it. The server will have hello.c. If somebody else updates the server you can run 'git pull' to get those changes. Anybody else who runs 'git pull' or clones the repo will have your hello.c
Simple? Yes!
Please note that my example is a very simple setup and you may need something more complex, but once you've got the basics it's not hard adding one or two more commands to do exactly what you want.

Similar Messages

  • Need help setting up Flex on server (sdk?)

    This should be a simple noob question:
    I have Flex Builder on my local machine. I've created an
    application (project.mxml) that uses VideoDisplay to play some
    videos chosen from a List using an XML file as the data source. The
    app works great testing on my local machine.
    I now wish to take my project and put it on my Windows 2k3
    server.
    I copied over my project directory to the server at
    D:\Flex\ProjectName, and I set a website in IIS using home
    directory D:\Flex.
    At this point, I go to my local machine and punch in the URL,
    http://10.xxx.xxx.xxx:8700/ProjectName/bin/project.html,
    which brings up my application UI. I can see the app, it looks
    identical to my local machine. However, when I go to select my
    video from the List, nothing plays. I've included a function that
    checks for connection and it doesn't report back with an alert.
    As for the server, it has the newest version of Flash player
    (not sure if this is even needed on server side?) and it also has
    the Flex Data Services 2 installed (yes, I'm using Flex 2). I don't
    even think I need the FDS2 installed at the moment since I'm not
    really connecting to any data sources other than this xml file, but
    I installed it as a precaution since i have it installed on my
    local machine. This is as far as the server is setup for Flex. I've
    looked at documentation and its not clear to me as to what needs to
    be on the server to get Flex apps to work. Do I need to install
    Flex Builder on the server? Or the SDK? And what files am I
    supposed to give the server from my local machine? I've spent a
    great deal of time on this to see it fail on the server, so any
    help is appreciated.

    I've added FLV to the MIME extensions list and restarted
    WWWPS
    Still no video connection. Sigh, this is weird. I am able to
    directory browse and I can see the videos.
    Something strange happens though. If I directory browse to
    /vids/, I can see all my FLV's. However when I click on one, it
    gives me a "Server Error" - Either the Macromedia application
    server is unreachable or it does not have a mapping to process this
    request.
    I changed my script a bit to point to another XML file
    located on the web,
    http://ws.jamesward.org/youtube.xml
    and modified my dataProvider and the source spots to fit his
    structure and it displayed his youtube videos.
    I'm going to try using full URL addressings for each video
    url on my XML file, though I think I did this already without
    progression.
    Let me know about that error I reported.
    EDIT: Using the full URL didn't work. It's still giving me a
    connection failed alert.
    EDIT2: I made a new mxml file with just a
    <mx:VideoDisplay> control only. I set the source to the full
    URL path of a single video on my server and tested the app locally.
    It would not display the video. I then set the source to the
    relative path of the same video on my local machine and the video
    played. So it's definitely something with my server handling these
    FLV's.
    EDIT3: Just to note, my server also has ColdFusion 7.0.2
    running on it. I don't know if that explains the error
    above?

  • Need help setting up Mac OSX Server for remote/off-site access

    Hello, I want to be able to access our g5 tower running Mac OSX Server 10.5.8 remotely when not in the office. We have a static IP.
    Are there easy step-by-step directions someone could provide or point me to? Thanks a bunch.

    Hi
    its really easy
    You need to have Apple remote desktop
    there are bunch of software s like chichen vnc and etc.
    01. open your router from your web browser
    02. go to nat settings
    03. screch the option calld port forwading
    04. enter the server ip address to that
    05. save and restart the router
    ** What you did so far
    if some one want to connect from your static ip address now it will forwerd to your server. *******
    Go to system preferences (on server)
    go to sharing
    enable remote management
    select opetions which you want
    your done
    2nd part Adding Computer to ARD
    Select All Computer ----> click plus button and select add by address
    put the Address : ip address
    user name : server User name
    password : server password
    eureka
    now you done

  • Need help setting up dnla media server

    I have gone to the forum to read what others are using to setup a media server on their intel iMac.  I have a 2010 i5 quad core 27" mac and just got a new Panasonic plasma DLNA TV with all of the internet apps.  I have Directv with the whole home network that was setup using my Qwest wireless modem/router.  Now, that I have a TV that can access my files on my computer I have tried the following apps, TwonkyMedia, XBMC, iSedora and none of them shows up when I select on my TV the DLNA icon, it says no media server found.
    In my network pane I can see Location: Automatic, Status: Connected, Configure IPv4: Using DHCP, along with the IP Address and other listings.  Under the Security and Privacy pane I have Firewire: ON, and when I look at the advanced settings I can see that all of the applications that I tried shows that they have access for incoming connections.
    I have file sharing off on everything except Bluetooth sharing.
    Since I have my Directv HD receiver in the living room and the whole home networking, I have taken an ethernet cable and hooked it to a Belkin router to my ethernet connection on the receiver, and another one from the router to the TV.  I have internet access now on my new TV, and my Onkyo AV receiver, but when I try to use any of the media server applications, my TV says it can't find the DLNA server.
    Is there a setting that I should access in the Network or File Sharing pane to allow these programs to work.  I am running Lion 10.7.2.
    Thanks,
    DaisyMay

    Hi Dansyacht,
    Yes, I tried Medialink server.  One thing that concerns me is with apps like TwonkyMedia a web based server that any of my folders could be viewed by others or get personal information.  Whereas the media servers for my computer seem safer, is that a concern to worry about?
    I just tried on Saturday before posting this the Medialink server, I can see my pictures, music, and video files listed in the window.  But when I go to my Panasonic tv and select dlan the window does not list any IP addresses.  I am wondering if I should reset my router, or change something in any of the panes listed above.  As I said above I can access the internet via my router on my tv, so I don't know what I am doing wrong with these applications, settings etc.
    I just tried the Medialink app again and now in the window under devices I see "Unsupported Device, Generic Remote Device with a list of four IP address.  This is also happening with my new Panasonic Blu-ray player which is also hooked up to the Belkin router.
    Any other suggestions?
    Thanks,
    Daisymay

  • HOW TO?: Need help setting up 3 different iCloud accounts for my kids (so each has own iMessanger)using same Apple ID (mine) ....they don't have their own separate email addresses to work from...how do I do this?

    Need help setting up 3 different iCloud accounts for my kids (so each has own iMessanger)using same Apple ID (mine) ....they don't have their own separate email addresses to work from...how do I do this?

    Any devices connected to the same icloud account can sync all the data on that account.  For this reason an icloud account is really for a single user.
    On a mac, if each user has their own account, then the itunes for that mac account should be set up to connect to that user's icloud account (System preferences>icloud).

  • Need help setting up TV equiptment

    I have been very ill and I need help setting up my TV, DVR, Receiver, Surround sound systems. I'm afraid if I try to work on all the equiptment, I'll drop my HDTV or other componets because I'm still weak. Can anyone help me? I've called a few places and they want $100.00 to set it up. Give me a break! I know about inputs and outputs and other cables, I just don't have the strength to move the equiptment around. I am willing to pay. Please call me at 813-{edited for privacy}. Thanks, Teresa {edited for privacy}

    blondeinneed wrote:
    I have been very ill and I need help setting up my TV, DVR, Receiver, Surround sound systems. I'm afraid if I try to work on all the equiptment, I'll drop my HDTV or other componets because I'm still weak. Can anyone help me? I've called a few places and they want $100.00 to set it up. Give me a break! I know about inputs and outputs and other cables, I just don't have the strength to move the equiptment around. I am willing to pay. Please call me at 813-{edited for privacy}. Thanks, Teresa {edited for privacy}
    Teresa,
    I think the best way for someone to volunteer to help you would be for them to send you a Private Message (PM) here on the forums. You should see a small envelope in the upper right corner of the screen, when it changes color you will know you have a PM to view.
    I would be happy to help, but since I am in North Texas I don't think that is a viable option Sorry....
    Justin
    FiOS TV, Internet, and phone user
    QIP7232, QIP7100-P2, IMG 1.9A
    Keller, TX 76248

  • Need help setting up and configuring rsync

    Hello
    I need help setting up, or rather configuring rsync to sync data between my brand new iMac and my Macbook Air.
    Here is what I would like to:
    - I want all of the files on both machines to be an exact mirror or copy of each other. Basically I have an iMac for at home, and then a Macbook Air for the road.
    - The main folder on both Macs is called 'Sara' and I want the contents (mainly the 'movies' folder, 'music' folder, 'documents' folder and 'pictures' folder) to immediately sync up with each other when both of them are on my home network.
    - this means if I'm working on a file at home on my Macbook, it will immediately write to the same directory on my iMac and vice versa (if I'm working on file(s) on my iMac, it will immediately save the contents to my Macbook). This way, if I'm working on last minute project my iMac, and then have to head out the door to the airport, the file is immediately saved to my Macbook (no usb for USB transfer).
    - hopefully this makes sense??
    Any help is greatly appreciated!
    Thanks

    It's a lofty but unrealistic goal.  Rsync does not run automatically.  There is no realistic method of instantaneously synching two computers over the internet or even on a LAN.
    I would suggest you might try using Synk Pro which, in theory, can keep two devices in sync when they are both on the same network (and both have shared and mounted drives.)
    If you must do this with rsync then I suggest a Google search for rsync tutorials.

  • I need help setting up an apple id for my sons phone. It seems his email address has been taken and/or we cant get the password.

    I need help setting up an apple id for my son's phone. It seems his email address has been taken and/or we cant get the password.

    Two different things
    If you forgot the password
    If you forgot your Apple ID password - Apple Support
    If the email ID you want to use is in use by someone else - then you may need a new one
    The iCloud ID's are usually unique and may be of help if you set one up

  • Need help Setting up Multiple Static Ip , 1 for each port of the fios router

    Need help Setting up multiple Static Ip on my fios router
    I have been trying to figure out how to set up multiple ip in my fios router.
    However I kind of managed how to set up multiple static ip However the way I want it is for each port of my router to have an external ip signed to it. ( like 4 different modem in 1 )
    Verizon gave me 5 static ip but they can not help me how to set it up.
    Have anyone here done more then one static ip on different ports? I assume that the process will be the after the second static ip.

    You want to set up Static Nat. You will not assign the IP to a port, but rather to a local machine. Figure out what machines you want your IP's to go to. Under the firewall section you will see static nat. Pick the machine you want and enter one of the IP's you were assigned.

  • Need help setting up FCE 4   PLEASE

    OK, I'm NOT a professional, just need help setting up.
    Just purchased FCE 4. Need to set up my Sony HDR SR11. I've already recorded most of my stuff in HD SP. Can someone Please help me set up?
    thanks

    Thanks for the info.
    I updated and did a search in my manual for Log and transfer which didn't go to anything I can figure out. Sorry, I don't have time to read 1152 pages.
    Can anyone just tell me how to get this going? There should be a simple set up correct?

  • My email is not working in lightroom. Need help setting that up.

    Need help setting up my email in lightroom. For some reason it's not connecting.

    Try posting in the Lightroom forum.  People there are more tuned in to the detail working of the application:
    http://forums.adobe.com/community/lightroom?view=discussions

  • I have a Steinberg MI4 and a Roland Fantom X7, and am trying to use my Fantom in Logic to record audio. Need help setting it all up using MIDI cables. Please help !

    I have a Steinberg MI4 and a Roland Fantom X7, and am trying to use my Fantom in Logic to record audio. Need help setting it all up using MIDI cables. Please help !

    Encryption wouldn't matter except for Wifi.
    While 10.2 might help, there's not much you can do on the Internet these days with less than 10.4.11
    Tiger Requirements...
    To use Mac OS X 10.4 Tiger, your Macintosh needs:
        * A PowerPC G3, G4, or G5 processor
        * Built-in FireWire
        * At least 256 MB of RAM (I recommend 1GB minimum)
        * DVD drive (DVD-ROM), Combo (CD-RW/DVD-ROM) or SuperDrive (DVD-R) for installation
        * At least 3 GB of free disk space; 4 GB if you install the XCode 2 Developer Tools  (I recommend 20GB minimum)
    http://support.apple.com/kb/HT1514
    http://www.ebay.com/sch/i.html?_nkw=mac+os+x+tiger+retail+10.4
    See Tom's, (Texas Mac Man), great info on where/how to find/get Tiger...
    https://discussions.apple.com/message/15305521#15305521
    Or Ali Brown's great info on where/how to find/get Tiger...
    http://discussions.apple.com/thread.jspa?messageID=10381710#10381710
    As far as Memory, that's sort of easy, find your eMac here...
    http://eshop.macsales.com/MyOWC/Models.cfm?Family=emac&sType=Memory
    As far as Hard Drive, it's not easy to replace the Internal drive, I'd maybe suggest an external Firewire drive to boot from...
    http://eshop.macsales.com/item/Other%20World%20Computing/MAU4S7500G16/

  • Need help setting up outlook mail on ipad2

    downloaded the outlook app, need help setting it up.

    Is it actually called Outlook, or is it called Outlook Mail Pro or Outlook Mail Complete or something like that? Those apps are actually by separate companies (ie, not Microsoft), and I don't personally have experience with them, but here are links to their support sites which should have the information you need (or an email address you can write to):
    Outlook Mail Pro: http://support.codebeforedawn.com/customer/portal/topics/38871-outlook-mail-pro
    Outlook Mail Complete: http://www.ikonicapps.com/outlook/
    hope that helps...
    Matt

  • Deperately need help setting up external midi devices

    I need help setting up external midi devices.....Motu828...Midi express...RolandXV3080....Motif rack.......HELP

    Theres not really much to setup. Assuming your synths are connected to the MIDI Express already..
    In Logic, make a new MIDI track. On the left hand side in the track inspector, among the parameters you'll see an option for MIDI Port and Channel. Just pick which port the track is going to, set the channel and device id and play (And be glad you never had to deal with setting up the old Environment window in Logic 5 and below).
    If you really wanna get into it and have all your MIDI ports named after the synth thats connected to it, open up Audio Midi Setup, create a device icon for each synth you have and draw the cables from each device to whatever port its connected to on the midi interface's icon.
    Then in Logic everytime you pick your MIDI port on your track, instead of MIDI Port 1, MIDI Port 2, etc.,
    it would be labelled XV-3080, Motif Rack, and so on.. I dont think theres anyway to do this within Logic itself (you can change the labels on your audio ins and outs, but not MIDI as far as I can recall)..
    If youre talking about having access to patch names and whatnot like Digital Performer and Cubase let you do, Logic doesnt use the xml patch lists everyone else does. The above steps are pretty much all there is to be done as far as MIDI.
    Heres my Audio Midi Setup window for reference.
    Now when I select MIDI Port 1 in Logic its named MWXT, port 2 is SR-16, etc..

  • HT5538 I dont really get this i need help setting some things up on my Ipod.Can you help?

    I need help setting up my Imessage and FaceTime.I have tryed and its not working.

    iOS: Using FaceTime
    iOS: About Messages
    iOS: Troubleshooting FaceTime and iMessage activation
    iOS: Troubleshooting Messages
    iOS: Troubleshooting FaceTime

Maybe you are looking for