User Tools

Site Tools


version_control:git_tips

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
version_control:git_tips [2024/04/17 22:39] – [Creating .gitignore files] mithatversion_control:git_tips [2024/04/17 22:54] (current) – [.gitignore] mithat
Line 20: Line 20:
 ===== Initial configuration ===== ===== Initial configuration =====
  
-The first time you run Git, it may get angry with you because you haven't configured your email and name. Just do what it says. If you prefer to be proactive, open a bash command line interface and enter:<code bash>+The first time you run Git, it may get angry with you because you haven't configured your email and name. Just do what it says. If you prefer to be proactive, open a Bash command line interface and enter:<code bash>
 git config --global user.name "Your Name" git config --global user.name "Your Name"
 git config --global user.email "you@example.com" git config --global user.email "you@example.com"
Line 30: Line 30:
  
 ===== .gitignore ===== ===== .gitignore =====
 +The ''.gitignore'' file is used to tell Git to ignore (i.e., not track) certain files. The leading dot is important. The leading dot also tells macOS and Linux systems that it is a hidden file. To show hidden files in macOS's Finder, use ''Command'' + ''Shift'' + ''.'' In Linux, it depends on the file manager you are using. However, ''Ctrl'' + ''H'' is a common shortcut for this.
 +
 To make Git ignore a specific file: To make Git ignore a specific file:
 <file text .gitignore> <file text .gitignore>
version_control/git_tips.1713393577.txt.gz · Last modified: 2024/04/17 22:39 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki