User Tools

Site Tools


version_control:git_basics

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
Next revisionBoth sides next revision
version_control:git_basics [2023/03/01 20:04] – [Clarification] mithatversion_control:git_basics [2023/03/01 20:06] – [Branching and merging] mithat
Line 21: Line 21:
  
 <WRAP center round tip 90%> <WRAP center round tip 90%>
-Use the ''git rm'' and ''git mv'' commands to delete and move/rename files instead of the Windows Explorer, the Finder in macOS, your Linux file manager, or other shell commands. Doing so will simplify staging.+Use the ''git rm'' and ''git mv'' commands to delete and move/rename files instead of the standard tools in your operating system. Doing so will simplify staging.
 </WRAP> </WRAP>
  
 ===== Branching and merging ===== ===== Branching and merging =====
-  * A git repository has a default branch called **master**.+  * A git repository has a default branch called **main**. (In older configurations this may be **master**.)
   * To create a new branch: <code bash>git branch branch-name</code>   * To create a new branch: <code bash>git branch branch-name</code>
   * Switch to an existing branch: <code bash>git checkout branch-name</code>   * Switch to an existing branch: <code bash>git checkout branch-name</code>
version_control/git_basics.txt · Last modified: 2024/04/17 21:53 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki