Hi, I am sharing here some steps for git hub commit specially when you are joined some repo as Collaborators and you are trying to commit your side code
So follow below steps to commit your code
So follow below steps to commit your code
- git init [If your local folder is not init with git earlier ]
- git remote add origin <Repo URL>
- git fetch [Will get the code/data from current Remote Repo from github]
- git pull <Repo URL>
- Now add your local copy to current checkout folder locally
- Now check status to confirm that you have correctly added you local copy to the live Git folderby " git status "
- Now you will see the latest added file
- now add this all file to github with command " git add " and then again checking status you may found file is added
- now git commit -m ""
- git push <Repo URL>
Done!!