- Continuous Integration,Delivery,and Deployment
- Sander Rossel
- 195字
- 2021-07-02 15:42:16
The working directory
As we have seen in the previous chapters, getting a Git repository on your local computer is as easy as cloning a repository. The folder that serves as your Git repository is a regular folder like any other and is also known as the working directory. The magic trick is the hidden .git folder that has all the data that is necessary for Git to track your files. It allows you to execute commands, such as git status, git add, and git commit. The .git file contains your HEAD, which is basically the current state of your branch. Whenever you move commits, branch, cherry pick, or whatever, the HEAD will know your current state and what it once was. Knowing this, resetting your working directory becomes as easy as resetting your HEAD, as we will see later. It also means that you can move your current branch to another commit simply by editing your HEAD. Now, I do not recommend you go around and edit files in the .git folder, but this is exactly what Git does for you when you execute command through the command line or through other Git clients.
- Java逍遙游記
- Mobile Application Development:JavaScript Frameworks
- Android應用程序開發與典型案例
- 零基礎搭建量化投資系統:以Python為工具
- Java EE 6 企業級應用開發教程
- Mastering OpenCV Android Application Programming
- Python數據可視化:基于Bokeh的可視化繪圖
- MATLAB 2020 從入門到精通
- MATLAB應用與實驗教程
- Getting Started with SQL Server 2012 Cube Development
- 智能搜索和推薦系統:原理、算法與應用
- Scala Functional Programming Patterns
- Secret Recipes of the Python Ninja
- 大規模語言模型開發基礎與實踐
- C語言程序設計教程