You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+27Lines changed: 27 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -130,6 +130,10 @@ commit is a way to save your changes to your repository. It is a way to record y
130
130
```cmd
131
131
git status
132
132
```
133
+
## Complete git flow A complete git flow
134
+
135
+
A complete git flow, along with pushing the code to github looks like this:
136
+

133
137
## Logs
134
138
The git log command is a powerful tool in Git that allows you to view the history of your repository. When used with the --oneline option, it presents this history in a simplified, condensed format. Here's a quick guide to help you understand and use these commands effectively.
135
139
@@ -195,3 +199,26 @@ Example :
195
199
secret.txt
196
200
197
201
```
202
+
# .gitkeep
203
+
When working with Git, you might encounter a file named .gitkeep. It’s not an official Git feature but a widely used convention. Here’s a quick guide to understanding and using `.gitkeep` effectively.
204
+
205
+
#### What is .gitkeep?
206
+
-**Purpose** : Keeps empty directories in Git repositories.
207
+
-**Function** : Ensures that directories without files are tracked by Git.
208
+
#### Why Use .gitkeep?
209
+
Git Basics: Git only tracks files, not empty directories. Without a file, empty directories won’t be committed.
210
+
Project Structure: Sometimes, you need to maintain a specific directory structure for your project. `.gitkeep` helps achieve this by making sure the directories stay in the repo.
211
+
212
+
#### How to Use .gitkeep
213
+
1. Create an Empty Directory:
214
+
215
+
- Navigate to your project directory.
216
+
- Create the desired empty directory if it doesn’t exist.
217
+
218
+
2. Add .gitkeep:
219
+
- Inside the empty directory, create a file named .gitkeep.
0 commit comments