• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Bear Bibeault
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • salvin francis
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
Bartenders:
  • Jj Roberts
  • Carey Brown
  • Scott Selikoff

How to push code to git repository on intranet?

 
Ranch Hand
Posts: 254
1
MySQL Database Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've somehow managed to clone a repository on the intranet using the statement:



Now I also would like to push my commited code to it. I searched how to do it over the internet but somehow posts have me confused.

Also reading this didn't make it clear. Is it the same way as with git over https and ssh for instance? Does anyone suggest any workflow for working on local file system or the intranet?
 
Saloon Keeper
Posts: 23272
158
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Git is designed for offline version control. You clone a repo to your local machine, do your work and commit to the local repo.

If you want to publish your changes to the Internet - for example GitHub - then you need to attach your local repo to one or more remote repos. The "git remote" command manages that.

Once you have a remote destination defined, use the "git push" command to push your local changes to the remote repo.

Of course, for the push to work, you have to have appropriate authentication and authorization, which means basically userid and password for the remote repo.

Git push can work over SSH, HTTP or other transport mechanisms, depending on which one(s) the remote repository accepts.
 
Ahsan Bagwan
Ranch Hand
Posts: 254
1
MySQL Database Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for a concise description of git.

What I am trying is using git on computers on the same network domain. I want to push code to another computer on the domain and wonder if things work the same way as with external remote repositories.
 
Tim Holloway
Saloon Keeper
Posts: 23272
158
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Git doesn't care. Don't forget that git was designed for projects with team members located all over the world!
 
I am not a spy. Definitely. Definitely not a spy. Not me. No way. But this tiny ad ...
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic