Changes

Jump to navigation Jump to search
21 bytes added ,  21:21, 5 June 2023
Line 140: Line 140:  
       &emsp; OR <br>
 
       &emsp; OR <br>
 
       <b>git add -u</b> <br>
 
       <b>git add -u</b> <br>
       <&ensp; <i> - Adds modified and deleted files only. Excludes new files. It will include files in the current directory and in higher directories that belong to the same git repository</i><br><br>
+
       &ensp; <i> - Adds modified and deleted files only. Excludes new files. It will include files in the current directory and in higher directories that belong to the same git repository</i><br><br>
 
       For a more detailed description of <i>git add</i> go to: https://github.com/git-guides/git-add</li><br>
 
       For a more detailed description of <i>git add</i> go to: https://github.com/git-guides/git-add</li><br>
   Line 170: Line 170:  
There are various reasons to not want to track/push files. The following situation helps when you're having trouble pushing files due to them being too big (>50 MB, GitHub max) .
 
There are various reasons to not want to track/push files. The following situation helps when you're having trouble pushing files due to them being too big (>50 MB, GitHub max) .
 
<ol>
 
<ol>
   <li><u>Find those files</u>: <br>
+
   <li><u>Find those problem files</u>: <br>
 
       &ensp; - Ensure you're in the directory of interest (use <b>cd </b> command as needed) <br>
 
       &ensp; - Ensure you're in the directory of interest (use <b>cd </b> command as needed) <br>
 
       &ensp; - Type <b>find . -type f -size +50M </b><br>
 
       &ensp; - Type <b>find . -type f -size +50M </b><br>
Line 178: Line 178:  
       &ensp; - To create one use the command <b>touch .gitnore </b><br>
 
       &ensp; - To create one use the command <b>touch .gitnore </b><br>
 
       &ensp; &ensp; Make sure you are in the root folder of your repository on your local computer when you use this command <br>
 
       &ensp; &ensp; Make sure you are in the root folder of your repository on your local computer when you use this command <br>
       &ensp; &ensp; Hint - The root folder is named the same as your repository on GitHub </li><br>
+
       &ensp; &ensp; <u>Hint</u> - The root folder is named the same as your repository on GitHub </li><br>
    
   <li><u>Use your favorite text editor to open the file (i.e. Vim, Notepad++, etc.)</u>: <br>
 
   <li><u>Use your favorite text editor to open the file (i.e. Vim, Notepad++, etc.)</u>: <br>
 
       &ensp; - Enter the oversized files from above into the girignore file<br>
 
       &ensp; - Enter the oversized files from above into the girignore file<br>
       &ensp; &ensp; Make sure to remove the . if you decide to copy/paste <br>
+
       &ensp; &ensp; Make sure to remove the <b>.</b> if you decide to copy/paste <br>
 
       <i><u>Example</u>:</i></li>
 
       <i><u>Example</u>:</i></li>
  
581

edits

Navigation menu