Noman
9
Q:

add a file to git

/*to add all the files in staging area at once*/
git add .
4
/* go to the folder, open the terminal and type this commands */

	git init
    git add .      /* . => it is to add all the files */
    git commit -m "first_commit"
    git remote add origin https://github.com/yourusername/your-repo-name.git
    git pull origin master
    git push origin master
    
/* sometimes we have to force push =>  git push --force origin master  */
0
git add <file> or you can do git add -A to add all files
1

New to Communities?

Join the community