0% found this document useful (0 votes)
10 views

How to upload a project into github

Uploaded by

imixa.imi01
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

How to upload a project into github

Uploaded by

imixa.imi01
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

How to upload a project into github:

1. Ajouter mon project dans git hub ;


2. Accéder au profil personnel ;
3. Créer un repository ;
4. Telecharger git ;
5. Accéder au powershell ;
6. Accéder au chemin de notre project androidStudio : C:\Users\tech\
AndroidStudioProjects\TEST1 ;
7. Dans la barre où il s’affiche le chemin on écrit powershell ;
8. On est dans powershell , on tape les commandes suivantes :
 echo "# Android_Calcule" >> README.md
 git init
 git add README.md
 git config --global user.email "[email protected]"
 git config --global user.name "Your Name"

 git add .
 git commit -m "first commit"
 git branch -M main
 git remote add origin
https://github.com/douwa299/Android_Calcule.git
 git push -u origin main
 git remote add origin
https://github.com/douwa299/Android_Calcule.git
 git branch -M main
 git push -u origin main
 public boolean onOptionsitemSelected(@NonNull MenuItem item){
int id = item.getGroupId();
if(id == R.id.settings){

Snackbar.make(linearLayout,"Are you
sure",Snackbar.LENGTH_LONG).setAction("yes", new
View.OnClickListener() {
@Override
public void onClick(View v) {
Snackbar.make(linearLayout,"opération
annulé",Snackbar.LENGTH_LONG).show();
}
}).setActionTextColor(Color.BLUE).setBackgroundTint(Color.YEL
LOW).show();
return true;

}
return super.onOptionsItemSelected(item);
}

You might also like