Git Product home page Git Product logo

localsourcecontrol's Introduction

LocalSourceControl

Simple deployment of a private git solution for professional teams

Automatic Method

Run the following scripts ............

Manual Method

Install git on the server and your local machine

MAC

brew install git

Linux

sudo apt-get install git-all

Configure a New Repository on any Local Server:

  1. On the server create a directory for all git projects to be stored mkdir projectdirectory
  2. cd into the directory cd projectdirectory
  3. Initialize git by typing git init

Create SSH Keys for passwordless login:

  1. Type ssh-keygen -t rsa
  2. In the following command, replace serverip, with the servers actually ip address and user with the username used to log into the server cat ~/.ssh/id_rsa.pub | ssh user@serverip "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"

Initial Setup:

  1. First go to a new directory on your computer which will be your working directory
  2. Run the following command: git clone user@serverip:/home/speech/git/projects.git
  3. Cd into the Projects Directory cd Projectdirecotry
  4. Create a new Branch and Name it something that describes the changes you are making for example "Fixed VAD" : git branch $branchname$
  5. Move to your branch by typing git checkout $branchname$
  6. Make sure you are in the new branch by typing git status
  7. Once you know you are in the new branch, start changing the files there normally, and use this directory for all the work
  8. Once you have finished making changes , type git add . for these changes to be updated.
  9. Check the differences between master branch and your branch by typing git diff, make sure the changes have been reflected here
  10. Now its time to commit , type git commit -m CommitName , here CommitName describes any issues you have fixed
  11. Finally its time to push your changes to origin. Type git push origin Branchname
  12. Wait for admin to accept your commit and merge your branch to the master.
  13. Have fun!

Daily Usage:

  1. First, fetch all the changes made while others were working on the project by typing git pull
  2. Next start a new branch for whatever changes you will be making for example SRTfix , git branch branchname
  3. Double check that you are on a new branch by typing git status
  4. Continue working as usual and when you are done do git add .
  5. Check if the changes have been reflected by typing git diff
  6. Commit the changes by typing git commit -m CommitName , here commitname describes what problems you may have solved
  7. Now its time to push your changes , type git push origin BranchName
  8. Wait for admin to merge
  9. Have fun!

localsourcecontrol's People

Contributors

araa47 avatar chernv avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.