Phonegap won't pull latest version - android

I'm making some changes to a test app to see how it works, git + phonegap, and for some reason I dont think phonegap is pulling the latest code. I can see the changes on github, here's the public test: https://github.com/xxAndreixx/prueba
I'm making the changes to the index.html file in the www folder, and I'm trying to install the app after I pull the code and rebuild, on an Android phone and however I can't see the changes when running the app; idk if I'm running the wrong commands on git. What I do is: 1) git commit -m "msg" 2) git push -u master origin
IDK where I'm failing.

#Andrei,
are you pressing the [Update Code] button?

TIL: don't be stupid and follow the correct order while in the ROOT.

Related

Android Studio Git works weird I think?

Hello I am using Android Studio 2020.3.1 Patch 4. I'm using Git and committing a state. And then add some code and I want to return to where I was (before I entered the new code). When I checkout it does nothing. Even if I restarted Android Studio. And when I Reset Current Branch to Here.. initially it does nothing but if I restart the Android Studio new code is gone(as I wanted). What am I doing wrong?
The correct command to remove the newly added but not commited code is:
git stash
It will remove the unstaged codes and return the code-base to the last commit.
We normally use 'git checkout' to move around between different commits.
If you want to do this process without command, you will need to "Rollback changes". The keyboard shortcut for macos for this is: option + command + z.

How to configure Android studio with gerrit commit and push

We have been using gerrit as our android source code repo. We usually use git bash
commands to do push ,pull and commit for working with gerrit.I want to how we can configure the android studio itself with gerrit so that i don't need to type in commands in git bash. I tried to change some settings in the Android studio in git version control option but that really didn't work.
One more thing is that whenever we do a commit through git commit command git creates (or something else i am sure as i am not very good at git commands and env) changeId: This is very important for pushing/amending the changes.How can i add changeId while i commit from studio.
Let me know if i am not very clear about my question , i will add more.
This is the image of my push Ui from studio where i can't see the origin HEAD :
Android Studio’s Git GUI should be able to do almost all the jobs through menus and buttons. The only annoying thing may be that you need to change the remote ref in the push menu from master or refs/heads/master to refs/for/master to create changes for review.
Change-Id is created by a hook commit-msg. As I know, it is under repo/hooks if you use Google’s REPO. The repositories cloned by repo sync have commit-msg deployed, so you don’t need to worry about it. But as for those repositories created by git clone or git init, you need to install it. Gerrit’s project page provides a clone command which includes scp that downloads and copies the hook automatically. If you clone through Android Studio, you could manually install it under .git/hooks/ for one repository, or copy it to $GITBASH/ming64(32)/share/git-core/template/hooks on Windows so that any new created repository will have it installed automatically.

git add image is not pushed to server

I changed a drawable a png file after I edited with GIMP and added to Android Studio in res folder. On the emulator i can see it is changed. And i can see on bitbucket that is not changed although i send these commands
git add -A #I tried also git add -u and git add .
git commit -m "new button"
git push -u origin master
my git status says that everything is updated. I understand that the way git works does not detect that i changed the file. I remember i did it something in few months ago without using rm but I cannot remember which command I used
Try the --refresh and --force flags.
From the Git manual:
--refresh
Don’t add the file(s), but only refresh their stat() information in the index.
-f, --force
Allow adding otherwise ignored files.
Can confirm in my experience that changing the name of my image on my local site and then adding and pushing the changes to Git caused the image to then show up on git's live page servers.
Thanks for the tip #trocchietto!
I found a workaround, but I would not be happy to mark as answer. Just changed the name of the file, refactored the name, and added, committed and successfully pushed.
It works, but is not the command I launched few months ago

Contribute on GitHub using Android Studio

I'm not new to using GitHub on Android Studio, but:
This is my first try to contribute to a sample project for Android on GitHub.
I did the following
I cloned the repository:
I made my changes
I committed my changes
I pushed my commit
And baam (here is the problem):
Why? What things did I miss?
(Don't forget, I have never contributed on GitHub, and this is my first time.)
403 indicates that you are not allowed to access the resource - you aren't authenticated with GitHub. To fix this, you should change your remote URL to a repository you have access to, then push your changes:
https://myusername#github.com/user/repo.git
From the command line you would need to do the following (Android Studio should automatically detect the changes):
git remote remove origin
git remote add origin https://myusername#github.com/user/repo.git
git push -u origin --all // prompts for authentication, pushes your changes to github
Your question has nothing to do with Android Studio, I guess if you try to push your changes through command line you'll get the same result. Read about Contributing to Open Source on GitHub.
First of all, to do a contribution:
You must fork the repository
Clone your fork version of that repository
Through the command line, navigate to your clone directory then add upstream version (original repository):
$ git remote add upstream https://github.com/fcannizzaro/material-stepper.git
You can check it using the line $ git remote, and you will see origin and upstream.
Make changes → commit them → then push (all of this happen on your repository (forked one), not the upstream).
Go and check the network graph for both the forked and original repositories.
Go to the GitHub original repository's link and click pull request.
Do as described in this image:
And fill the others field and click Create pull request
Thanks for Erik Carlsten's tutorials.

How to add my Android Eclipse project to my friend's Git repository in Windows?

I think I need to use Git clone?
His repository address is gitosis#XX.XX.XXX.XXX:repoName.git
I would like to do this outside of Eclipse. (ie. no plugins)
Pretend the path to my project is C://user/krb/project/..
Can I get a detailed answer on how to do this? I would like an application that allows me to use the command line as if I was on Linux.
Any help would be GREATLY appreciated!!!
Thanks Guys!
TortoiseGIT might be useful to you
I used msysgit to install Git and bash cmd line.
I used Bash Git that was installed with mysysgit to change my directory to where I wanted the repository.
I then used the command git clone gitosis#XX.XX.XXX.XXX:repoName.git to clone buddies repo.
side notes: - I used puttygen to generate a key to open with pageant and then sent that key to my friend for him to allow my key. Additionally, when installing msysgit on Windows don't install in the program files directory or you won't have permission to do anything.

Categories

Resources