Wednesday, April 17, 2013

Git Command

Initializing a Repository in an Existing Directory

If you’re starting to track an existing project in Git, you need to go to the project’s directory and type
$ git init

Cloning an Existing Repository

$ git clone git://github.com/..../example.git




 


  • The command (1) initializes the new local repository as a clone of the 'upstream' (i.e. the remote server based) moodle.git repository. The upstream repository is called 'origin' by default. It creates a new directory named moodle, where it downloads all the files. This operation can take a while as it is actually getting the entire history of all Moodle versions
  • The command (2) lists all available branches.
  • Use the command (3) to create a new local branch called MOODLE_23_STABLE and set it to track the remote branch MOODLE_23_STABLE from the upstream repository.
  • The command (4) actually switches to the newly created local branch.


Updating your installation

The Moodle development team performs integration and testing of fixed bugs every Monday and Tuesday. On Wednesday you can install all patches by updating your code. Check the shortlog to see if the official repository has been already updated or not.
To update your code to the latest version (on the MOODLE_22_STABLE branch) all you have to do is:
$ cd /path/to/your/moodle/$ git pull



Other Git

$ git clone https://github.com/Activiti/Activiti.git


Vaadin - https://github.com/vaadin
$ git clone git://github.com/vaadin/dashboard-demo.git

Related Posts:

  • Bài 7 Các công cụ tính Công cụ tính Pip https://www.forextime.com/eu/vi/trading-tools/trading-calculator/pip-calculator… Read More
  • Metatrader 5 Hướng dẫn sử dụng Metatrader 5: Hướng dẫn sử dụng phần mềm MT5 chi tiết nhất Tác giả: Tin Nguyen | Th3 02, 2020 … Read More
  • Forex - Kỹ năngThị trường Forex có 3 trường phái phân tích, bao gồm: Phân tích cơ bản, Phân tích kỹ thuật và Phân tích tâm lý thị trường. Phân tích cơ bản Với phân tích cơ bản, bạn sẽ phải tìm hiểu rất nhiều về các chính sách kinh tế, bạ… Read More
  • Bài 8 Đầu tư Forex ngắn hạn/ dài hạn Đầu tư forex Ngắn hạn Với hình thức đầu tư ngắn hạn sẽ chia ra làm 2 dạng nhỏ hơn là đầu tư lướt sóng (Scalping) và đầu tư trong ngày (day trading). Đầu tư lướt sóng (Scalping)   là hình thức chủ yếu sử dụng các khung … Read More
  • Bài 1 Các khái niệm Giá Bid <= Giá Ask giá Bid sẽ luôn được ghi trước, giá Ask là giá được ghi sau. Tất nhiên giá Ask lúc nào cũng cao hơn hoặc bằng với giá Bid. Giá Bid:  là giá mà bạn sẽ BÁN ra cho sàn giá hay là giá mà sàn gia… Read More

0 comments:

Post a Comment