Ir al contenido principal

Github

Github

Upload the changes to GIT


  1. git add .
  2. git commit -m "Added associations"
  3. git push origin master

Commands

  1. git init
    • Initialize a Git repository
  2. git status
    • Check if there are changes
  3. git add file_name
    • Add specific file
  4. git add '*.txt'
    • Add a type of files
  5. git rm '<file_name>'
    • Delete a file
  6. git commit -m "Comment"
    • Store our staged change
  7. git log
    • Show all the changes
  8. git remote add origin https://github.com/<repository>/<repository_name>.git
    • Push our local repository to Github server
  9. git push -u origin master 
    • Push the changes to the server repo
    • origin - is the name of the remote
    • master - is the name of the branch
    • -u - save the parameters, so the second time only type git push
  10. git pull origin master
    • Down the changes from the server repo
  11. git diff HEAD
    • Get the differences from our most recent commit
  12. git diff --staged
    • See the changes you just staged
  13. git reset <path>/<file_name>.est
    • Unstage a file
  14. git checkout --<file_name>
    • Get from the server the last version
  15. git brach <branch_name>
    • Create a branck 
  16. git branch
    • Show all your branches
  17. git checkup <branch_name>
    • Switch among branches 
  18. git checkout <branch_name>
    • Switch back to an specific branch
  19. git merge <branch_name>
    • Merge the branch that you are typing <branch_name> into the branch you are
  20. git branch -d <branch_name>
    • Delete a specific branch



Comentarios

Entradas populares de este blog

Android - Basic Steps (Service)

Service Run in the main thread of the hosting application Android can kill the Service if need the resources Purpose Supporting inter-application method execution Performing background processing Start a Service Call Context.startService(Intent intent)\ To call from a Fragment use getActivity().getApplicationContext().startService( intentService); Executing the service After call startService(...)  In the Service is executed the method onStartCommand(...) If the method returns the constant START_NOT_STICKY then Android will not restart the service automatically if the the process is killedp Foreground To execute the service foreground call the method startForeground() Use this if the user is aware of the process Bind to a Service Call the method Context.bindService( Intent service ServiceConnection con int flags ) Send Toast from the Service On the method onStartCommand receive the message   ...

Android - Basic Steps (Location & Maps)

Location Is composed by Latitude Longitude Time-stamp Accuracy Altitude Speed Bearing LocationProvider Types: Network  Wifi access points Cell phone towers GPS Passive Piggyback on the readings requested by other application Permissions Network  android.permission.ACCESS_COARSE_LOCATION android.permission.ACCESS_FINE_LOCATION GPS android.permission.ACCESS_FINE_LOCATION Passive Provider android.permission.ACCESS_FINE_LOCATION LocationManager System service for accessing location data getSystemService( Context.LOCATION_SERVICE ) Functions Determine the last known user location Register for location update Register to receive intents when the device nears or move away from a given geographic area LocationListener Defines callbacks methods that are called when Location or LocationProvider status change. Methods onLocationChanged(...) onProviderDisabled(...) onProviderEnabled(...) onStatusChan...

IIS - Permisions

IIS Permissions To enable the Active Directory connection in the IIS, follow the next steps: Go to IIS Go to Application Pool Select your App Pool Select Advanced Settings in the right side In the section Process Model Select in Identity value the property " NetworkService " You don´t need to restart your application