Bespoke Software Solutions

Do you feel stuck?

Need Help or Advice?

Git on the Centos Server

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
29-07-2019 | TBQ Group

The Most Popular Myths, The Work of a Programmer

READ MORE
04-07-2019 | TBQ Group

Benefits of CRM Systems

READ MORE
20-06-2019 | TBQ Group

Customer Relationship Management

READ MORE
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