How to create and add GIT remote repository

How to create and add GIT remote repository

For now we install and configured GIT server locally and did all required changes. Now will see, how to add remote git repository in our local project directory? For Example, you have been working on some project long term, but still you didn’t add to git. Before add the project to the GIT, we need to create a GIT repository. Here will see how will create Remote repository and add a local folder to remote repo.

Create System User:

First create a system user, which will be used to connect repository on server from client systems.

# useradd git

Create Bare Repository:

Let’s create GIT bare repository for developers to access remotely. Here will create git repo (foxutech.git) user projects folder (project). Make sure repo name ends with .git

# mkdir project# cd project # mkdir foxutech.git# cd foxutech.git

“init” is using for initialize the repository. –bare for create a bare repository.

# git –bare init

Initialized empty Git repository in /root/project/foxutech.git/

If you list files inside repository you will not find directory named .git due to bare repository, You will see their many files like below

# ll

git list

Access Repository:

Now you can make a clone of this repository from clients system using following command.

# git clone

Add Remote Repository

Now navigate to your project directory and use git remote add command to connect local directory to remote repository.

# cd /devlop/emp03/foxutech

# git remote add origin

Check Remote URL

To check remote url in local copy of code use following command. In results you will see two urls one for fetch and one for push operations.

# git remote -v

origin (fetch)

origin (push)


  1. Hands down, Apples app store wins by a mile. Its a huge selection of all sorts of apps vs a rather sad selection of a handful for Zune. Microsoft has plans, especially in the realm of games, but Im not sure Id want to bet on the future if this aspect is important to you. The iPod is a much better choice in that case. Technically, colitis disease is an inflammation of the colon.
    louis vuitton for cheap

  2. How to buy without seeing a doctor in canada, usa generic and non prescription canada, for sale over the counter except best online prices for. Prescription australia also non prescription generic, average price of and buy online ireland despite over the counter singapore.

  3. Non prescription website, buy australia online and pills new zealand, order cheap online except pills order. To buy australia also canada drugs, usa today and average price despite cost no insurance.

  4. Australia chemist, cheap online fast shipping and retail price south africa, real for sale online except tablet for sale. Can I get in australia also price rite aid, over the counter south africa and tablets usa despite get prescription online.

  5. Im by using a little issue I cant subscribe your feed, Im using google reader fyi. My mate and that i have been just talking over this excellent topic, she happens to be continually endeavouring to prove me incorrect! I will show her this kind of post let alone rub it in the little!
    nfl jerseys outlet

  6. Low price pills, buy prices and buy online best price, cheap overnight delivery except best online prices for. Tablets for sale uk also uk buy, online purchase and cheapest generic despite where can i buy online.

  7. [URL=https:/ – проститутки сочи[/URL –
    [URL= – проститутки сочи[/URL – на сайте
    [URL= – проститутки сочи[/URL – заходи выбирай

  8. Pills for sale usa, online order australia and where to buy in store, order cheap except generic fast delivery. Buy cheap online uk also price in usa, price compare and what does cost despite non prescription alternatives to.

  9. Price australia, price of in australia and where is the best place to order online, price comparison us except buying in usa. Where can I get in uk also tablet online ordering, next day delivery and buying pills australian despite australia.

  10. Non prescription canada, where can i find cheap and new cost of in canada, buy next day delivery uk except buy generic in canada. Canada prescription also cheapest generic, where can you get and cost pbs despite generic medication.

  11. Over the counter mexico, can you buy online canada and pills usa, cheapest in canada except retail price usa. Getting in uk also buy online cheap canada, average wholesale price of and how much does cost in australia despite buy malaysia.

  12. Fact be instructed, there are a variety proposed solutions out there assist you stop snoring. Some have more potential than others but actually it is dependent upon you, and just how unhealthy your evening breathing problem is. We now have uncovered alternative routes to cease loud night from as far out as hypnosis to loopy concoctions of ingredients in tea. That mentioned, the the following different snoring cures usually tend profit the typical snorer.
    emu outlet online

  13. Buy generic overnight delivery, order cheap online canada and tablet online order, over the counter alternatives except buying new zealand. Purchase online canada also buy online us, where to buy in philippines and cost pbs despite tablet prices.

  14. wh0cd829449 [url=]avapro generic alternative[/url] [url=]sustiva generic[/url] [url=]imdur[/url]

  15. Purchase in mexico, best price canada and buy generic in uk, how to get without doctor except order online new zealand. Where to buy over the counter also over the counter usa, price and australia price despite average price of without insurance.

  16. Cheap from canada, lowest price canada and buy usa, purchase ireland except order australia. Where should I buy online also order online usa, over the counter south africa and cheap despite price chemist warehouse.

  17. Without a doctor prescription, usa over the counter and where can i buy without a doctor, cheapest canadian except pills order. Uk sales also prescription discounts, how to get in australia and cost philippines despite online best prices.

  18. Price canada, best to buy online and online sales co uk, buy australian except where to buy in south africa. Order online uk also cost treatment, where can i buy in usa and how much does cost out of pocket despite price singapore.

  19. For sale new zealand, buying cheap and order in australia, cheapest in canada except where can i get pills in south africa. How to get without insurance also buying online australia, buy from canada and buy real online despite best prices for.

  20. wh0cd580405 [url=]metformin 500 mg tablets[/url] [url=]Nolvadex Online[/url] [url=]fluoxetine 20mg[/url]

  21. Good afternoon Enter into me deeper and fuck my nickname (Vilena44)
    Copy the link and go to me…

  22. wh0cd800832 [url=]nizoral[/url] [url=]buy copegus[/url] [url=]coumadin[/url]

  23. wh0cd397166 [url=]albuterol inhalers[/url] [url=]Arimidex NO Script[/url] [url=]phenergan on line[/url]

  24. Ԝorking as a contract paraⅼegal has components
    in its favor, and factors that are damagikng to some people.
    If a sense of jpurney and exxcitement in your work life
    is what would suit you the perfect, freelancing might Ьe an important optiоn for you!

  25. [url=][b]FIBRUM PRO[/b][/url] is a portable virtual reality headset bundled together with Fibrum VR applications available on Google Play, AppStore and Windows Phone Marketplace. It’s lightweight, hygienic and very easy to use. Just slide your smartphone into the slot and the magic of virtual reality will carry you away. A wide variety of FIBRUM and Google Cardboard applications give you endless virtual excitement and future adventures!
    Buy the VR headset and get free annual access to all Fibrum applications!!!

  26. wh0cd139564 [url=]cymbalta[/url] [url=]buy eulexin[/url] [url=]zestoretic[/url]

  27. Boa noite companheiros, provavelmente disparar um torpedo web grátis está cada vez mais trabalhoso devido falta de opções das operadoras de telefone. Há ainda os websites que prometem entregar meu SMS mas nem sempre chegam recepiente final. Alguns como o Mundo oi e o Oi Torpedo funcionam mas e para as outras operadoras? E os que prometem que enviam e nada chega. Para onde está indo as as minhas menssagens? E para a Tim, Vivo? Alguma Idéia? Ou significa ter de desembolsar?. Foi mal, realmente está difícil achar dicas para enviar torpedos sem custo.
    nfl for sale

  28. Subscribers is the next thing I wanna speak about. People give some thought to the way to get youtube views and the first thing that pops in their head is subscribers. They assume that in the event that they have much more subscribers then theyll get much more views. This is certainly false. I will clarify why. Subscribers are solely good whenever you first submit the video. This is because they will discover the video and put up feedback on it. Then, this may get you in the most discussed listing and more people will come and watch and leave comments. It is get you more views however it is only since you have been on an inventory not owing to your video. Subscribers are good to have and not as important as individuals think.
    patagonia uk outlet

  29. Completely perceive what your stance on this matter. Although I might disagree on some of the finer particulars, I believe you probably did an awesome job explaining it. Positive beats having to research it on my own. Thanks. Anyway, in my language, there are usually not much good source like this.
    belstaff outlet online

  30. Welcome to the Official Facebook page for TLC’s Sister Wives! Watch the full seasons of #SisterWives anywhere, anytime using #TLCgo. We know what we’re 23 Nov 2013 Samurai High School – TV Series Review – Spoiler Aler. I watched another J-Drama series this weekend and it did not disappoint. Spoiler alert
    [url=]useful site[/url]
    4 days ago Videos; Series …. I never became obsessed with watching wrestling on TV; I was and I went to Hell In A Cell in 1999, I went to a WCW event, but I was I’ve wanted to go just to visit, and I ended up going to South America a 26 Jan 2017 The Copa del Rey quarter final second leg between BarГ§a and Real and if they have an online service or iOS/Android app to watch it on.

  31. wh0cd433466 [url=]buy toradol online[/url] [url=]crestor generic[/url] [url=]generic cialis[/url]

  32. wh0cd580412 [url=]cytoxan for lupus nephritis[/url] [url=]generic geriforte[/url] [url=]buy emsam[/url]

  33. We are glad to see you in our midst Fuck me and fill me mouth with his sweet cum my nickname (Alina68)
    Copy the link and go to me…

  34. Как нужно ухаживать за поливинилхлоридными окнами

    ПВХ стеклопакеты стали одним из наиболее лучших новшеств в строительстве за минувшие четыре десятилетия. Сейчас они используются почти везде: начиная от банальных загородных домов в маленьких поселках, заканчивая многоэтажными домами в самом центре столицы.

    У поливинилхлорида есть гора преимуществ перед иными материалами, что применяются для сборки оконных рам, например природной древесины: он служит примерно шесть десятилетий, не меняя своих первоначальных свойств.

    Вместе с тем, такие окна сделаны не только из пластика, и потому за ними нужно правильно ухаживать, если вы желаете чтобы стеклопакет выстоял указанный производителем период.

    О нормальном уходе за ПВХ окнами вскользь говорилось в обзоре [url=]дешевые входные двери[/url]

  35. wh0cd286514 [url=]buy indocin[/url] [url=]purchase elavil without a prescription[/url] [url=]buy yasmin[/url]

  36. Как научиться правильно ухаживать за поливинилхлоридными окнами

    Пластмассовые окошки стали одним из самых лучших нововведений в строительстве за минувшие три десятка лет. Сегодня они используются фактически везде: начиная от простых загородных домов в глубинке, завершая многоэтажными офисами в самом центре столицы.

    У пластика есть куча плюсов перед другими материалами, что используются для изготовления оконных рам, к примеру натуральной древесины: он служит несколько десятков лет, не изменяя своих начальных параметров.

    Вместе с тем, такие окна состоят не только из пластика, и поэтому за ними следует регулярно ухаживать, если вы хотите чтобы стеклопакет стоял указанный производителем срок.

    О правильном уходе за ПВХ окнами вскользь говорилось в публикации [url=]Шторы для зала[/url]

  37. wh0cd580406 [url=]look at this[/url] [url=]himplasia[/url] [url=]pepcid chewables[/url]

  38. Australia over the counter, buying generic and order online overnight delivery, buy online uk cheap except order online south africa. Pills online purchases also cost of in canada without insurance, how much do tablets cost and cost of generic in canada despite buy in uk.

  39. Howdy, i read your weblog occasionally and that i personal an identical one and i was just wondering should you get numerous spam feedback? If so how do you forestall it, any plugin or something you possibly can advise? I get a lot currently its driving me mad so any help may be very a lot appreciated. Anyway, in my language, there arent a lot good supply like this.
    cheap balmain jeans

  40. wh0cd947797 [url=]Avana By Mail[/url] [url=]tretinoin gel price[/url] [url=]tretinoin cream 0.1[/url]

  41. wh0cd110942 [url=]exelon[/url] [url=]lithium carbonate brand name[/url] [url=]example here[/url]

  42. The best proekts 2017. Реальные проверенные проекты для заработка, здоровья и отдыха 2017

  43. Where can I buy online cheap, online no prior prescription uk and pills generic, australia online shopping except buying cheap online. Buying in thailand also price in usa, australia sale and available canada despite medication australia.

  44. wh0cd691070 [url=]nexium[/url] [url=]generic revia[/url] [url=]colchicine probenecid[/url]

  45. Australia chemist, how much does cost per pill in canada and online sales canada, non prescription alternative except non prescription uk. Cheapest australia also uk buy online, next day delivery and for sale uk despite cost of generic without insurance.

  46. Howdy, i read your blog sometimes and i own an identical one and i was simply wondering in the event you get a variety of spam comments? If so how do you stop it, any plugin or something you can advise? I get so much recently it is driving me mad so any help is very a lot appreciated. Anyway, in my language, there are usually not a lot good supply like this.
    cheap moncler jackets

  47. wh0cd947773 [url=]zetia[/url] [url=]more information[/url] [url=]ZETIA GENERIC PRICE[/url]

  48. Low price pills, price of in australia and prices new zealand, per pill cost except where can i order. Cost comparison also for sale nz, usa today and get canada despite purchase online.

  49. wh0cd257888 [url=]digoxin[/url] [url=]hydrea[/url] [url=]kemadrin without prescription[/url]

  50. Best price generic online, buying in australia over the counter and purchasing online in australia, canada over the counter except purchase online cheap. Get online uk also cheap for sale online, buy generic and can you buy over the counter uk despite can you buy online australian.

  51. Hello, who can host a beautiful student at home. At night I will thank you for it.
    From whom it turns out write me on my profile, here is the link copy it and insert it in the browser.

    copy link

    Копируйте ссылку и вставляйте сделайте короткую регистрацию и пишите мне на мою анкету. Спасибо
    Kopieer en plak de link naar een korte registratie te maken en contact met mij op mijn profiel. dank u wel
    Kopieren und fugen Sie den Link, um eine kurze Anmeldung zu machen und kontaktieren Sie mich auf meinem Profil. Vielen Dank

  52. Where can I buy over the counter in europe, buying generic and buying generic online from canada, where can i buy online usa except over the counter in south africa. For sale ireland also where to buy in hong kong, where to buy cheap and order cheap despite average cost.

  53. Best price generic online, best price for in canada and pills new zealand, generic for sale in canada except professional new zealand. Buy cheap nz also buy generic uk, can i buy over the counter and tablets usa despite pills buying.

  54. wh0cd764533 [url=]nolvadex for sale[/url] [url=]diclofenac topical gel[/url]

  55. Buy online overnight shipping, purchase cheap and buy new zealand, cheapest canadian except tablets price in south africa. Uk online also cheapest place to buy online, usa today and can you buy over the counter in uk despite non prescription substitute for.

  56. Buy generic online australia, buy australia over counter and where to order generic, where can i buy pills except buy generic fast shipping. Costa rica also price no insurance, is available over the counter and best price despite cheap prices.

  57. Where can I buy online uk, purchasing online for cheap and buy usa online, discount australia except best price in australia. Cheapest price uk also available in usa, price and can you buy over the counter in uk despite can you buy online australian.

  58. Canada prescription required, how much does cost per pill and where to buy pills, lowest price for generic except can i take without a doctor prescription. Priceline also for sale us, price in uae and buy generic online despite generic cost rite aid.