Bespoke Software Solutions

Are you feel you are stuck?

Need a Help or Advice?

Git on the Centos Server

You are here:
< Back

/*******
* SERVER
********/

Login in to your server:

ssh login@yourdomainname.com

Install git package:

$ sudo yum install git

Create user folder and nessesery files:

$ sudo adduser git
$ su git
$ cd
$ mkdir .ssh && chmod 700 .ssh
$ touch .ssh/authorized_keys && chmod 600 .ssh/authorized_keys

Create empty repository:

$ mkdir repository_name.git
$ cd repository_name.git
$ git init -bare
$ logout

/*********
LOCAL MACHINE
***********/

On your local machine:

Clone your repository
$ git clone git@oldrepository_url:repository_name

Push your repository to new server
$ git push –mirror git@yourdomainname:repository_name

Change settings in your local repository

git remote set-url origin git@yourdomainname:repository_name
git push –set-upstream origin master

Our latest articles
07-01-2019 | TBQ Group

What does system integration mean?

READ MORE
14-01-2019 | TBQ Group

Why your business needs an EPOS system

READ MORE
Bespoke Software Solutions
30-10-2018 | TBQ Group

Why your business needs a bespoke app

READ MORE
Bespoke Software Solutions
30-10-2018 | TBQ Group

Five reasons why bespoke software development is the perfect fit for your business

READ MORE
Off-the-shelf -vs Bespoke software development
26-07-2018 | TBQ Group

Off-the-shelf vs. bespoke software development

READ MORE
Bespoke Software Solutions
07-04-2018 | TBQ Group

[CVE-2017-5487] Content Injection Vulnerability in WordPress

READ MORE