Push local changes to the remote branch
Lets you push your local commits to a remote git repo. Useful if you make local changes such as adding a version bump commit (using
commit_version_bump) or a git tag (using 'add_git_tag') on a CI server, and you want to push those changes back to your canonical/main repo.
|Supported platforms||ios, android, mac|
push_to_git_remote # simple version. pushes "master" branch to "origin" remote
push_to_git_remote( remote: "origin", # optional, default: "origin" local_branch: "develop", # optional, aliased by "branch", default is set to current branch remote_branch: "develop", # optional, default is set to local_branch force: true, # optional, default: false force_with_lease: true, # optional, default: false tags: false # optional, default: true )
||The local branch to push from. Defaults to the current branch||*|
||The remote branch to push to. Defaults to the local branch||*|
||Force push to remote||
||Force push with lease to remote||
||Whether tags are pushed to remote||
||The remote to push to||
* = default value is dependent on the user's system
To show the documentation in your terminal, run
fastlane action push_to_git_remote
It is recommended to add the above action into your
Fastfile, however sometimes you might want to run one-offs. To do so, you can run the following command from your terminal
fastlane run push_to_git_remote
To pass parameters, make use of the
: symbol, for example
fastlane run push_to_git_remote parameter1:"value1" parameter2:"value2"
It's important to note that the CLI supports primative types like integers, floats, booleans, and strings. Arrays can be passed as a comma delimited string (e.g.
param:"1,2,3"). Hashes are not currently supported.
It is recommended to add all fastlane actions you use to your
This action, just like the rest of fastlane, is fully open source, view the source code on GitHub